Problem splithunny
User justin271828
Submission Time 2023-06-24 19:06:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp:4:8: error: ‘r’ was not declared in this scope
4 | bool v[r][c]; //visited bool
| ^
splithunny.cpp:4:11: error: ‘c’ was not declared in this scope
4 | bool v[r][c]; //visited bool
| ^
splithunny.cpp:5:7: error: expected constructor, destructor, or type conversion before ‘(’ token
5 | memset(v, false, sizeof(v));
| ^
splithunny.cpp: In function ‘void bfs(int, int)’:
splithunny.cpp:8:2: error: ‘v’ was not declared in this scope
8 | v[y][x] = true;
| ^
splithunny.cpp:11:12: error: a function-definition is not allowed here before ‘{’ token
11 | int main() {
| ^
splithunny.cpp:26:2: error: expected ‘}’ at end of input
26 | }
| ^
splithunny.cpp:7:24: note: to match this ‘{’
7 | void bfs(int y, int x) {// yr xc
| ^