QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#855227 | #9557. Temperance | MaMengQi | Compile Error | / | / | C++98 | 1015b | 2025-01-12 16:25:11 | 2025-01-12 16:25:11 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:24:53: error: ‘>>’ should be ‘> >’ within a nested template argument list 24 | priority_queue<int, vector<int>, greater<int>>pq; | ^~ | > > answer.code:40:40: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ [-Wc++11-extensions] 40 | a[i].rou = max({ xxx[a[i].x], yyy[a[i].y], zzz[a[i].z] }); | ^ answer.code:40:39: error: no matching function for call to ‘max(<brace-enclosed initializer list>)’ 40 | a[i].rou = max({ xxx[a[i].x], yyy[a[i].y], zzz[a[i].z] }); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/13/string:51, 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_algobase.h:257:5: note: candidate: ‘template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)’ 257 | max(const _Tp& __a, const _Tp& __b) | ^~~ /usr/include/c++/13/bits/stl_algobase.h:257:5: note: template argument deduction/substitution failed: answer.code:40:39: note: candidate expects 2 arguments, 1 provided 40 | a[i].rou = max({ xxx[a[i].x], yyy[a[i].y], zzz[a[i].z] }); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/stl_algobase.h:303:5: note: candidate: ‘template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)’ 303 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) | ^~~ /usr/include/c++/13/bits/stl_algobase.h:303:5: note: template argument deduction/substitution failed: answer.code:40:39: note: candidate expects 3 arguments, 1 provided 40 | a[i].rou = max({ xxx[a[i].x], yyy[a[i].y], zzz[a[i].z] }); | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~