Problem duckhunt5
User CJZ
Submission Time 2026-05-16 09:23:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt5.cpp: In function ‘int32_t main()’:
duckhunt5.cpp:13:21: error: expected ‘;’ before ‘if’
13 | cin >> query
| ^
| ;
14 | if (query == 1) {
| ~~
duckhunt5.cpp:19:9: error: ‘else’ without a previous ‘if’
19 | else if (query == 2) {
| ^~~~
duckhunt5.cpp:22:41: error: expected ‘;’ before ‘}’ token
22 | points.erase(points.find(x))
| ^
| ;
23 | } else if (query == 3) {
| ~