Problem splithunny
User ensonchew
Submission Time 2025-08-19 14:44:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp:10:1: error: expected ‘,’ or ‘;’ before ‘bool’
10 | bool visited[100][100];
| ^~~~
splithunny.cpp: In function ‘void bfs(long long int, long long int)’:
splithunny.cpp:14:2: error: ‘q’ was not declared in this scope
14 | q.push(make_pair(starti, startj));
| ^
splithunny.cpp:15:2: error: ‘visited’ was not declared in this scope
15 | visited[0][0] = true;
| ^~~~~~~
splithunny.cpp:19:28: error: ‘i’ was not declared in this scope
19 | for (int k = 0; k < 4; ++i){
| ^
splithunny.cpp:20:42: error: ‘curj’ was not declared in this scope; did you mean ‘curi’?
20 | int nexti = curi + dir[k][0], nextj = curj + dir[k][0];
| ^~~~
| curi
splithunny.cpp:21:29: error: ‘bfsr’ was not declared in this scope; did you mean ‘bfs’?
21 | if (nexti < 0 || nexti &g