Problem splithunny
User aa24codebreaker
Submission Time 2023-11-15 14:34:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘void dfs(int, int)’:
splithunny.cpp:15:18: error: invalid types ‘int[int]’ for array subscript
15 | int dy = x+dy[k];
| ^
splithunny.cpp:16:24: error: ‘ny’ was not declared in this scope; did you mean ‘dy’?
16 | if (nx<0 or nx>=h or ny<0 or ny>=w)continue;
| ^~
| dy
splithunny.cpp:17:19: error: ‘ny’ was not declared in this scope; did you mean ‘dy’?
17 | if(!visited[nx][ny] && arrayi[nx][ny]=='H'){
| ^~
| dy
splithunny.cpp: In function ‘int main()’:
splithunny.cpp:24:2: error: ‘cin’ was not declared in this scope
24 | cin>>h>>w;
| ^~~
splithunny.cpp:32:2: error: ‘cout’ was not declared in this scope
32 | cout<<"Oh, bother. There are "<<sum<<" pools of hunny.";
| ^~~~