Problem problemsetter
User RandomCtfNoob
Submission Time 2026-02-23 16:22:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

problemsetter.cpp: In function ‘int main()’:
problemsetter.cpp:11:22: error: expected ‘;’ before ‘i’
11 | for(int i = 0; i < c i++){
| ^~
| ;
problemsetter.cpp:17:22: error: expected ‘;’ before ‘i’
17 | for(int i = 0; i < p i++){
| ^~
| ;
problemsetter.cpp:36:16: error: expected ‘;’ before ‘}’ token
36 | ans += maxsat
| ^
| ;
37 | }
| ~
problemsetter.cpp:38:17: error: no matching function for call to ‘max(long long int&, int)’
38 | ans = max(ans,0);
| ^
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/