Problem splithunny
User Jiayue
Submission Time 2023-11-16 11:24:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp:6:21: error: array must be initialized with a brace-enclosed initializer
6 | int dx[4] = (0, 0, 1, -1);
| ~~~~~~~~^~~~~
splithunny.cpp:7:22: error: array must be initialized with a brace-enclosed initializer
7 | int dy[4] = (1, -1, 0, 0);
| ~~~~~~~~~^~~~
splithunny.cpp: In function ‘void dfs(int, int)’:
splithunny.cpp:10:6: error: ‘visited’ was not declared in this scope
10 | if (visited[x][y])return;
| ^~~~~~~
splithunny.cpp:11:2: error: ‘visited’ was not declared in this scope
11 | visited[x][y] = true;
| ^~~~~~~
splithunny.cpp:15:61: error: lvalue required as left operand of assignment
15 | if (nx == 0 && nx < r && ny>=0 && ny = c && grid[x][y] == 'H'){
| ^~~
splithunny.cpp: In function ‘int main()’:
splithunny.cpp:29:7: error: ‘i’ was not declared in this scope
29 |