QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#44924#4561. Catfish FarmGuanYunchangCompile Error//C++17390b2022-08-22 11:43:202022-08-22 11:43:22

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/vector:60,
                 from fish.h:1,
                 from answer.code:1:
/usr/include/c++/11/bits/stl_algobase.h:300:5: note: ‘std::max’ declared here
  300 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~