Problem grid
User Henries
Submission Time 2024-10-16 11:32:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

grid.cpp: In function ‘int main()’:
grid.cpp:31:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
31 | if (x=="#" || y == "#"){
| ^~~
grid.cpp:31:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
31 | if (x=="#" || y == "#"){
| ^~~
grid.cpp:32:8: error: expected unqualified-id before ‘.’ token
32 | set.insert({h,y});
| ^
grid.cpp:32:21: error: expected primary-expression before ‘)’ token
32 | set.insert({h,y});
| ^