Problem problemsetter
User RandomCtfNoob
Submission Time 2025-01-06 17:29:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

problemsetter.cpp: In function ‘int main()’:
problemsetter.cpp:27:36: error: expected ‘;’ before ‘}’ token
27 | best = max(best,satgain[k]-d,0)
| ^
| ;
28 | }
| ~
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from problemsetter.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h: In instantiation of ‘constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]’:
problemsetter.cpp:27:35: required from here
/usr/include/c++/9/bits/stl_algobase.h:271:17: error: ‘__comp’ cannot be used as a function
271 | if (__comp(__a, __b))
| ~~~~~~^~~~~~~~~~