Problem duckhunt19
User PGisnotnice5
Submission Time 2025-11-24 13:52:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt19.cpp: In function ‘int main()’:
duckhunt19.cpp:7:2: error: expected initializer before ‘cin’
7 | cin>>n>>x;
| ^~~
duckhunt19.cpp:11:8: error: ‘h’ was not declared in this scope
11 | cin>>h[i];
| ^
duckhunt19.cpp:23:8: error: ‘h’ was not declared in this scope
23 | if(h[i]>0)
| ^
duckhunt19.cpp:38:8: error: ‘h’ was not declared in this scope
38 | if(h[i]>0)
| ^