Problem splithunny
User aa24codebreaker
Submission Time 2023-11-10 16:05:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp:6:22: error: expected ‘}’ before ‘]’ token
6 | int dx[4] = {-1,0,0,1];
| ~ ^
splithunny.cpp:6:22: error: expected ‘,’ or ‘;’ before ‘]’ token
splithunny.cpp: In function ‘int main()’:
splithunny.cpp:33:50: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
33 | if (visited[i][j] or arrayi[i][j] == ".")continue;
| ^~~
splithunny.cpp:38:54: error: expected ‘;’ before ‘return’
38 | cout << "Oh, bother. There are 2 pools of hunny."
| ^
| ;
......
41 | return 0;
| ~~~~~~