Problem illuminate
User boaznumberd5555
Submission Time 2023-07-14 15:04:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

illuminate.cpp: In function ‘int main()’:
illuminate.cpp:13:29: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
13 | if (arr[i%h][i/h] = "#")++walls;
| ^~~
| |
| const char*
illuminate.cpp:18:28: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
18 | if(arr[i][j] = "#"){
| ^~~
| |
| const char*
illuminate.cpp:30:28: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
30 | if(arr[i][j] = "#"){
| ^~~
| |
| const char*