C ++ encountered reference to '***' is ambiguous error

Today when writing C algorithm declares encounter a mistake not encountered before a global traversal min to record the shortest path, the compiler found:

reference to ' min' is ambiguous

Translation is ambiguous references to the min. 

By querying Baidu found out that I quoted iostream libraries like property or method with the same name as the inside. The min variable change of name on the list.

I will not put a very simple error code
----------------
Disclaimer: This article is CSDN blogger "love and hate Dian 'original article, follow the CC 4.0 BY-SA Copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/qq_39734584/article/details/90324450

Guess you like

Origin www.cnblogs.com/mjn1/p/11566925.html