Problem illuminate
User wahjsodhowasd
Submission Time 2026-02-19 10:53:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

illuminate.cpp: In function ‘int main()’:
illuminate.cpp:11:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if(c=="."){
| ^~~
illuminate.cpp:14:12: error: expected ‘;’ before ‘arr’
14 | arr[0][y]=1
| ^
| ;
15 | arr[x][0]=1}
| ~~~
illuminate.cpp:16:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | if(c=="#"){
| ^~~
illuminate.cpp:30:1: error: ‘Ans’ was not declared in this scope
30 | Ans+=arr[i][j];
| ^~~
illuminate.cpp:32:7: error: ‘Ans’ was not declared in this scope
32 | cout<<Ans;
| ^~~
illuminate.cpp:33:1: error: expected ‘}’ at end of input
33 | }
| ^
illuminate.cpp:9:27: note: to match this ‘{’
9 | for(long long i;i<R*C;i++){
| ^
illuminate.cpp:33:1: error: expected ‘}’ at en