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

Compile Error

duckhunt13.cpp: In function ‘int main()’:
duckhunt13.cpp:11:10: error: ‘type’ was not declared in this scope; did you mean ‘wctype’?
11 | cin >> type;
| ^~~~
| wctype
duckhunt13.cpp:14:4: error: expected initializer before ‘cin’
14 | cin >> x;
| ^~~
duckhunt13.cpp:15:9: error: expected ‘;’ before ‘}’ token
15 | sum++
| ^
| ;
16 | } else if (type==2) {
| ~