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

Compile Error

duckhunt13.cpp: In function ‘int main()’:
duckhunt13.cpp:11:3: error: expected initializer before ‘cin’
11 | cin >> type
| ^~~
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