QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#45016#4561. Catfish FarmZhangYiDeCompile Error//C++17803b2022-08-22 12:35:012022-08-22 12:35:04

Details

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