Problem seats2
User PerihelionfromAphelion
Submission Time 2026-04-12 12:13:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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