/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'void recu(float, int)':
foo.cpp:11:13: error: reference to 'min' is ambiguous
foo.cpp:3:5: error: candidates are: int min
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:41:0,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:41,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
                 from foo.cpp:1:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:233:5: error:                 template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:187:5: error:                 template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
foo.cpp:12:4: error: reference to 'min' is ambiguous
foo.cpp:3:5: error: candidates are: int min
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:41:0,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:41,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
                 from foo.cpp:1:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:233:5: error:                 template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:187:5: error:                 template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
foo.cpp: In function 'int main()':
foo.cpp:39:2: error: reference to 'min' is ambiguous
foo.cpp:3:5: error: candidates are: int min
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:41:0,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:41,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
                 from foo.cpp:1:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:233:5: error:                 template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:187:5: error:                 template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)
foo.cpp:45:10: error: reference to 'min' is ambiguous
foo.cpp:3:5: error: candidates are: int min
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/char_traits.h:41:0,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:41,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
                 from foo.cpp:1:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:233:5: error:                 template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare)
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_algobase.h:187:5: error:                 template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&)

信息

递交者
类型
递交
题目
P1002 过河
语言
C++
递交时间
2014-02-03 18:27:33
评测时间
2014-02-03 18:27:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes