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

Compile Error

seats2.cpp: In function ‘int main()’:
seats2.cpp:10:23: error: expected ‘;’ before ‘)’ token
10 | for (i = 0; i < n - 2) {
| ^
| ;
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++;
| ^~~