Problem | seats2 |
---|---|
User | StormyGood |
Submission Time | 2024-11-08 08:35:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
seats2.cpp: In function ‘int main()’:
seats2.cpp:12:36: error: expected ‘,’ before ‘+’ token
12 | char c = b[i], d = b[i+1], e = [i+2];
| ^
| ,
seats2.cpp:12:36: error: expected identifier before ‘+’ token
seats2.cpp: In lambda function:
seats2.cpp:12:39: error: expected ‘{’ before ‘;’ token
12 | char c = b[i], d = b[i+1], e = [i+2];
| ^
seats2.cpp: In function ‘int main()’:
seats2.cpp:12:39: error: cannot convert ‘main()::<lambda()>’ to ‘char’ in initialization
seats2.cpp:13:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
13 | if (c == "#") cnt ++;
| ^~~