Problem seats2
User paaaaaaaaaaaaaaaaaaa
Submission Time 2024-11-08 09:13:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

seats2.cpp: In function ‘int32_t main()’:
seats2.cpp:11:16: error: invalid conversion from ‘int (*)()’ to ‘char’ [-fpermissive]
11 | s[i] = getchar;
| ^~~~~~~
| |
| int (*)()
seats2.cpp:14:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if(s[i] == "#" && s[i + 2] == "#" && s[i + 1] == "."){
| ^~~
seats2.cpp:14:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if(s[i] == "#" && s[i + 2] == "#" && s[i + 1] == "."){
| ^~~
seats2.cpp:14:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if(s[i] == "#" && s[i + 2] == "#" && s[i + 1] == "."){
| ^~~