Problem duckhunt13
User Shauryaw
Submission Time 2025-06-18 09:51:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt13.cpp: In function ‘int main()’:
duckhunt13.cpp:9:2: error: expected initializer before ‘for’
9 | for (int i = 0; i < q; i++)
| ^~~
duckhunt13.cpp:9:18: error: ‘i’ was not declared in this scope
9 | for (int i = 0; i < q; i++)
| ^
duckhunt13.cpp:16:5: error: ‘else’ without a previous ‘if’
16 | } else if (type==2) {
| ^~~~
duckhunt13.cpp:16:14: error: ‘type’ was not declared in this scope; did you mean ‘wctype’?
16 | } else if (type==2) {
| ^~~~
| wctype