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

Compile Error

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