Problem seats2
User PerihelionfromAphelion
Submission Time 2026-04-12 12:11:47
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] == "." && s[i] == "#") cnt++;
| ^~~
seats2.cpp:11:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if (s[i] == "#" && s[i] == "." && s[i] == "#") cnt++;
| ^~~
seats2.cpp:11:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
11 | if (s[i] == "#" && s[i] == "." && s[i] == "#") cnt++;
| ^~~