Problem lazycat
User Sans12345
Submission Time 2023-01-15 21:15:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lazycat.cpp: In function ‘int main()’:
lazycat.cpp:47:7: error: assignment of function ‘double y1(double)’
47 | y1 = y+dy[i];
| ~~~^~~~~~~~~
lazycat.cpp:48:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
48 | if(x1 < 0 || x1 >= N || y1 < 0 || y1 >= N) continue;
| ^
lazycat.cpp:49:18: error: invalid types ‘char [30][double(double) noexcept]’ for array subscript
49 | if(grid[x1][y1] == 'X') continue;
| ^
lazycat.cpp:50:21: error: invalid types ‘bool [30][double(double) noexcept]’ for array subscript
50 | if(visited[x1][y1]) continue;
| ^
lazycat.cpp:51:27: error: no matching function for call to ‘std::queue<std::array<int, 3> >::push(<brace-enclosed initializer list>)’
51 | bfs.push({x1,y1,cnt2+1});
| ^
In file i