Problem flybot
User asbx
Submission Time 2023-11-15 10:30:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flybot.cpp: In function ‘auto f(int, int)’:
flybot.cpp:9:5: error: ‘arr’ was not declared in this scope
9 | if(arr[x-1][y-1] == false){
| ^~~
flybot.cpp: In function ‘int main()’:
flybot.cpp:17:2: error: expected initializer before ‘cin’
17 | cin>>H>>W;
| ^~~
flybot.cpp:18:11: error: ‘W’ was not declared in this scope
18 | bool arr[W][H];
| ^
flybot.cpp:21:11: error: ‘c’ was not declared in this scope
21 | getline(c,s);
| ^
flybot.cpp:24:5: error: ‘arr’ was not declared in this scope
24 | arr[j][i] = false;
| ^~~
flybot.cpp:26:9: error: ‘arr’ was not declared in this scope
26 | else{arr[j][i] = true;
| ^~~
flybot.cpp:30:10: error: ‘w’ was not declared in this scope
30 | cout<<f(w,h);
| ^
flybot.cpp:30:12: error: ‘h’ was not declared in this scope
30 | cout<<f(w,h);