QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#44879#4561. Catfish FarmZhangYiDeCompile Error//C++17368b2022-08-22 11:13:002022-08-22 11:13:02

详细

answer.code: In function ‘long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’:
answer.code:15:12: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
   15 |     return max(res[0],res[1]);
      |            ^~~
      |            std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
                 from answer.code:3:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~