QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#44926#4561. Catfish FarmHuangHanShengCompile Error//C++17410b2022-08-22 11:44:212022-08-22 11:44:23

Details

answer.code: In function ‘long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’:
answer.code:19:12: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
   19 |     return max(sumL, sumR);
      |            ^~~
      |            std::max
In file included from /usr/include/c++/11/algorithm:62,
                 from answer.code:4:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~