Problem duckbuttons
User TK
Submission Time 2026-08-16 20:52:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckbuttons.cpp: In function ‘int main()’:
duckbuttons.cpp:11:16: error: ‘i’ was not declared in this scope
11 | cin >> table[i];
| ^
duckbuttons.cpp: At global scope:
duckbuttons.cpp:16:2: error: expected unqualified-id before ‘for’
16 | for (int x = buttons-1; x >= 0; x--) {
| ^~~
duckbuttons.cpp:16:26: error: ‘x’ does not name a type
16 | for (int x = buttons-1; x >= 0; x--) {
| ^
duckbuttons.cpp:16:34: error: ‘x’ does not name a type
16 | for (int x = buttons-1; x >= 0; x--) {
| ^