Problem sniper
User JIZHE
Submission Time 2023-04-03 17:29:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sniper.cpp:22:26: error: ‘c’ was not declared in this scope
22 | int max = *max_element(c,c+n);
| ^
sniper.cpp:22:28: error: ‘c’ was not declared in this scope
22 | int max = *max_element(c,c+n);
| ^
sniper.cpp:22:30: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
22 | int max = *max_element(c,c+n);
| ^
| yn
sniper.cpp:23:1: error: ‘cout’ does not name a type
23 | cout << max;
| ^~~~
sniper.cpp:24:1: error: expected declaration before ‘}’ token
24 | }
| ^