Problem seats2
User EuniceLoh
Submission Time 2024-11-08 09:05:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

seats2.cpp: In function ‘int main()’:
seats2.cpp:7:11: error: expected ‘;’ before ‘endl’
7 | cout << N endl;
| ^~~~~
| ;
seats2.cpp:10:7: error: ‘i’ was not declared in this scope
10 | for (i=1; i<=2X100000; i++) {
| ^
seats2.cpp:10:15: error: unable to find numeric literal operator ‘operator""X100000’
10 | for (i=1; i<=2X100000; i++) {
| ^~~~~~~~
seats2.cpp:12:12: error: expected primary-expression before ‘int’
12 | cout << int x = increment(0);
| ^~~