Problem splithunny
User ethantanaki
Submission Time 2026-07-25 10:47:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘int main()’:
splithunny.cpp:9:39: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
9 | for(int j=0;j<c+5;j++) grid[i][j] = ".";
| ^~~
| |
| const char*
splithunny.cpp:15:2: error: expected initializer before ‘memset’
15 | memset(vis,0,sizeof(vis));
| ^~~~~~
splithunny.cpp:20:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
20 | if(grid[i][j] == ".") continue;
| ^~~
splithunny.cpp:21:7: error: ‘vis’ was not declared in this scope
21 | if(vis[i][j] == 1) continue;
| ^~~
splithunny.cpp:25:4: error: ‘vis’ was not declared in this scope
25 | vis[i][j] = 1;
| ^~~
splithunny.cpp:33:25: error: ISO C++ forbids comparison between pointer and integer