Problem sniper
User FreedomhawksBANANAA
Submission Time 2023-04-21 08:15:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sniper.cpp: In function ‘void solve()’:
sniper.cpp:4:9: error: ‘read’ was not declared in this scope; did you mean ‘fread’?
4 | int n; read(n);
| ^~~~
| fread
sniper.cpp:6:2: error: ‘FOR’ was not declared in this scope
6 | FOR(n) read(h[i]);
| ^~~
sniper.cpp:12:4: error: ‘print’ was not declared in this scope; did you mean ‘printf’?
12 | } print(ans);
| ^~~~~
| printf
sniper.cpp: At global scope:
sniper.cpp:14:5: error: cannot declare ‘::main’ to be a global variable
14 | int main{
| ^~~~
sniper.cpp:15:8: error: expected ‘}’ before ‘;’ token
15 | solve();
| ^
sniper.cpp:14:9: note: to match this ‘{’
14 | int main{
| ^
sniper.cpp:15:6: error: void value not ignored as it ought to be
15 | solve();
| ~~~~~^~
sniper.cpp:16:1: error: expected declaration before ‘}’ token
16 | }
| ^<