/ Vijos /

记录详情

Compile Error

foo.cpp:36:19: error: 'ptypr' has not been declared
foo.cpp: In function 'bool less(ptype, int)':
foo.cpp:38:13: error: request for member 'y' in 'b', which is of non-class type 'int'
foo.cpp:38:29: error: request for member 'y' in 'b', which is of non-class type 'int'
foo.cpp:39:20: error: request for member 'x' in 'b', which is of non-class type 'int'
foo.cpp: In function 'void qsort(int, int)':
foo.cpp:50:10: error: reference to 'less' is ambiguous
foo.cpp:36:6: error: candidates are: bool less(ptype, int)
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/string:50:0,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_classes.h:42,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/ios_base.h:43,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:43,
                 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:4:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_function.h:233:12: error:                 template<class _Tp> struct std::less
foo.cpp:51:10: error: reference to 'less' is ambiguous
foo.cpp:36:6: error: candidates are: bool less(ptype, int)
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/string:50:0,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_classes.h:42,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/ios_base.h:43,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:43,
                 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:4:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/stl_function.h:233:12: error:                 template<class _Tp> struct std::less
foo.cpp: In function 'int main()':
foo.cpp:69:29: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'ptype*' [-Wformat]
foo.cpp: In function 'bool less(ptype, int)':
foo.cpp:40:1: warning: control reaches end of non-void function [-Wreturn-type]

信息

递交者
类型
递交
题目
P1066 弱弱的战壕
语言
C++
递交时间
2014-01-21 10:33:41
评测时间
2014-01-21 10:33:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes