Problem duckbuttons
User Joashhh
Submission Time 2025-02-23 18:03:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckbuttons.cpp: In function ‘int main()’:
duckbuttons.cpp:15:34: error: expected ‘;’ before ‘curr’
15 | sum += (a[i] - sum)*i
| ^
| ;
16 | curr = a[i];
| ~~~~
duckbuttons.cpp:21:1: error: expected ‘}’ at end of input
21 | }
| ^
duckbuttons.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^