prog.cpp:41:2: error: reference to 'min' is ambiguous
min = 0;
^
prog.cpp:38:5: note: candidate found by name lookup is 'min'
int min;
^
/usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../../include/c++/4.9/bits/algorithmfwd.h:371:5: note: candidate found by name lookup is 'std::min'
min(const _Tp&, const _Tp&, _Compare);
^
/usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../../include/c++/4.9/bits/algorithmfwd.h:367:5: note: candidate found by name lookup is 'std::min'
min(const _Tp&, const _Tp&);
^
prog.cpp:49:29: error: reference to 'min' is ambiguous
if (total == 0 || total < min) min = total;
^
prog.cpp:38:5: note: candidate found by name lookup is 'min'
int min;
^
/usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../../include/c++/4.9/bits/algorithmfwd.h:371:5: note: candidate found by name lookup is 'std::min'
min(const _Tp&, const _Tp&, _Compare);
^
/usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../../include/c++/4.9/bits/algorithmfwd.h:367:5: note: candidate found by name lookup is 'std::min'
min(const _Tp&, const _Tp&);
^
prog.cpp:49:34: error: reference to 'min' is ambiguous
if (total == 0 || total < min) min = total;
^
prog.cpp:38:5: note: candidate found by name lookup is 'min'
int min;
^
/usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../../include/c++/4.9/bits/algorithmfwd.h:371:5: note: candidate found by name lookup is 'std::min'
min(const _Tp&, const _Tp&, _Compare);
^
/usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../../include/c++/4.9/bits/algorithmfwd.h:367:5: note: candidate found by name lookup is 'std::min'
min(const _Tp&, const _Tp&);
^
prog.cpp:50:9: error: no matching member function for call to 'insert'
GRAPH.insert(GRAPH.begin()+i);
~~~~~~^~~~~~
/usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../../include/c++/4.9/bits/stl_vector.h:1120:9: note: candidate function template not viable: requires 3 arguments, but 1 was provided
insert(iterator __position, _InputIterator __first,
^
/usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../../include/c++/4.9/bits/stl_vector.h:998:7: note: candidate function not viable: requires 2 arguments, but 1 was provided
insert(iterator __position, const value_type& __x);
^
/usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../../include/c++/4.9/bits/stl_vector.h:1072:7: note: candidate function not viable: requires 3 arguments, but 1 was provided
insert(iterator __position, size_type __n, const value_type& __x)
^
prog.cpp:67:20: error: reference to 'min' is ambiguous
printf("%d\n", min);
^
prog.cpp:38:5: note: candidate found by name lookup is 'min'
int min;
^
/usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../../include/c++/4.9/bits/algorithmfwd.h:371:5: note: candidate found by name lookup is 'std::min'
min(const _Tp&, const _Tp&, _Compare);
^
/usr/bin/../lib/gcc/i586-linux-gnu/4.9/../../../../include/c++/4.9/bits/algorithmfwd.h:367:5: note: candidate found by name lookup is 'std::min'
min(const _Tp&, const _Tp&);
^
5 errors generated.