QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#423272#8179. 2D ParenthesesZhangYiDeCompile Error//C++112.6kb2024-05-27 22:00:452024-05-27 22:00:45

Details

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 |     });
      |     ^