Problem famishedcats
User pasit
Submission Time 2026-05-12 21:57:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

famishedcats.cpp: In function ‘int32_t main()’:
famishedcats.cpp:50:42: error: expected ‘;’ before ‘else’
50 | if(n-i-1 <= mxd) x-= max(d[i],d[n-i-1])
| ^
| ;
51 | else x -= d[i];
| ~~~~