Problem twomeals
User PicradSG
Submission Time 2026-03-03 16:02:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

twomeals.cpp: In function ‘int main()’:
twomeals.cpp:11:14: error: expected ‘;’ before ‘A’
11 | cin >> A[i]
| ^
| ;
12 | A[i] += A[i-1];
| ~
twomeals.cpp:13:19: error: expected ‘)’ before ‘{’ token
13 | ans = max(ans, A{i]-mn);
| ~ ^
| )