| Problem | seats2 |
|---|---|
| User | yanwen |
| Submission Time | 2026-02-11 16:26:36 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
seats2.cpp: In function ‘int main()’:
seats2.cpp:10:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
10 | if (s[i] == "#.#"
| ^~~~~
seats2.cpp:10:26: error: expected ‘;’ before ‘ans’
10 | if (s[i] == "#.#"
| ^
| ;
11 | ans++;
| ~~~
seats2.cpp:12:9: error: expected primary-expression before ‘}’ token
12 | }
| ^
seats2.cpp:11:19: error: expected ‘)’ before ‘}’ token
11 | ans++;
| ^
| )
12 | }
| ~
seats2.cpp:10:12: note: to match this ‘(’
10 | if (s[i] == "#.#"
| ^
seats2.cpp:12:9: error: expected primary-expression before ‘}’ token
12 | }
| ^
seats2.cpp: At g