Problem gotoschool
User ZiXin
Submission Time 2023-11-08 13:21:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gotoschool.cpp: In function ‘int32_t main()’:
gotoschool.cpp:11:34: error: ‘i’ was not declared in this scope
11 | for (int index = 1; index <= N; i++) {
| ^
gotoschool.cpp:18:9: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘long long int’ to binary ‘operator<<’
18 | count << ordertoenter[i] << " ";
| ~~~~~~^~~~~~~~~~~~~~~~~~
gotoschool.cpp:18:34: error: expected ‘)’ before ‘;’ token
18 | count << ordertoenter[i] << " ";
| ^
| )
gotoschool.cpp:17:31: note: to match this ‘(’
17 | for (int i = 1; i <= N; i++) (
| ^
gotoschool.cpp: At global scope:
gotoschool.cpp:20:2: error: expected unqualified-id before ‘return’
20 | return 0;
| ^~~~~~
gotoschool.cpp:21:1: error: expected d