QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#423272 | #8179. 2D Parentheses | ZhangYiDe | Compile Error | / | / | C++11 | 2.6kb | 2024-05-27 22:00:45 | 2024-05-27 22:00:45 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int main()’: answer.code:73:27: error: wrong number of template arguments (0, should be 1) 73 | sort(a+1, a+N+1, less<>()); | ^ In file included from /usr/include/c++/13/string:49, from /usr/include/c++/13/bits/locale_classes.h:40, from /usr/include/c++/13/bits/ios_base.h:41, from /usr/include/c++/13/ios:44, from /usr/include/c++/13/ostream:40, from /usr/include/c++/13/iostream:41, from answer.code:1: /usr/include/c++/13/bits/stl_function.h:403:12: note: provided for ‘template<class _Tp> struct std::less’ 403 | struct less : public binary_function<_Tp, _Tp, bool> | ^~~~ answer.code:74:30: error: wrong number of template arguments (0, should be 1) 74 | sort(b+1, b+N+1, greater<>()); | ^ /usr/include/c++/13/bits/stl_function.h:393:12: note: provided for ‘template<class _Tp> struct std::greater’ 393 | struct greater : public binary_function<_Tp, _Tp, bool> | ^~~~~~~ answer.code: In lambda function: answer.code:48:5: warning: control reaches end of non-void function [-Wreturn-type] 48 | }); | ^