Problem duckhunt14
User R9q5P8
Submission Time 2025-11-19 09:44:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt14.cpp: In function ‘int main()’:
duckhunt14.cpp:27:9: error: found ‘:’ in nested-name-specifier, expected ‘::’
27 | for (b : bullets)
| ^
| ::
duckhunt14.cpp:27:7: error: ‘b’ has not been declared
27 | for (b : bullets)
| ^
duckhunt14.cpp:32:1: error: expected primary-expression before ‘}’ token
32 | }
| ^
duckhunt14.cpp:31:16: error: expected ‘)’ before ‘}’ token
31 | cout << count;
| ^
| )
32 | }
| ~
duckhunt14.cpp:27:6: note: to match this ‘(’
27 | for (b : bullets)
| ^
duckhunt14.cpp:32:1: error: expected primary-expression before ‘}’ token
32 | }
| ^