Problem duckbuttons
User Feiyang
Submission Time 2026-03-27 13:23:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
duckbuttons.cpp: In function ‘int main()’:
duckbuttons.cpp:16:30: error: expected ‘;’ before ‘ans’
16 | maxi = max(maxi,a[i])
| ^
| ;
17 | ans += maxi;
| ~~~