Problem seats2
User StormyGood
Submission Time 2024-11-08 08:37:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

seats2.cpp: In function ‘int main()’:
seats2.cpp:12:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (b[i] == "#" && b[i+1] == "." && b[i+2] == "#") cnt++;
| ^~~
seats2.cpp:12:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (b[i] == "#" && b[i+1] == "." && b[i+2] == "#") cnt++;
| ^~~
seats2.cpp:12:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (b[i] == "#" && b[i+1] == "." && b[i+2] == "#") cnt++;
| ^~~