Problem sniper
User Yifei1234
Submission Time 2023-04-03 17:17:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sniper.cpp: In function ‘int main()’:
sniper.cpp:7:16: error: ‘h’ was not declared in this scope
7 | for (int i=0;i<h;i++){
| ^
sniper.cpp:8:16: error: ‘s’ was not declared in this scope
8 | for (int i=0;i<s;i++)
| ^
sniper.cpp:12:6: error: ‘s’ was not declared in this scope
12 | cin>>s>>h;
| ^
sniper.cpp:16:10: error: cannot resolve overloaded function ‘max’ based on conversion to type ‘int’
16 | location=max
| ^~~