Problem duckbuttons
User AdamAdnan1C
Submission Time 2025-02-24 18:09:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckbuttons.cpp: In function ‘int32_t main()’:
duckbuttons.cpp:33:28: error: expected ‘}’ at end of input
33 | a[pos] -= count; // Remaining ducks needed
| ^
duckbuttons.cpp:32:16: note: to match this ‘{’
32 | } else {
| ^
duckbuttons.cpp:33:28: error: expected ‘}’ at end of input
33 | a[pos] -= count; // Remaining ducks needed
| ^
duckbuttons.cpp:25:24: note: to match this ‘{’
25 | while (!q.empty()) {
| ^
duckbuttons.cpp:33:28: error: expected ‘}’ at end of input
33 | a[pos] -= count; // Remaining ducks needed
| ^
duckbuttons.cpp:5:16: note: to match this ‘{’
5 | int32_t main() {
| ^