Problem arcwrecker2
User RandomCtfNoob
Submission Time 2026-01-19 16:49:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arcwrecker2.cpp: In function ‘int sol(int, int, int, int*)’:
arcwrecker2.cpp:30:20: error: expected ‘;’ before ‘build’
30 | build[point+2] build[point];
| ^~~~~~
| ;
arcwrecker2.cpp:33:20: error: expected ‘;’ before ‘build’
33 | build[point+1] build[point-1];
| ^~~~~~
| ;
arcwrecker2.cpp:56:26: error: expected ‘;’ before ‘}’ token
56 | build[r] = build [r-1] // the last one can be added without problems
| ^
| ;
57 | }else if(build[r] > build[r-1]){
| ~
arcwrecker2.cpp:58:26: error: expected ‘;’ before ‘}’ token
58 | build[r] = build [r-1]
| ^
| ;
59 | }
| ~
arcwrecker2.cpp: In function ‘int main()’: