Problem | gotoschool |
---|---|
User | ZiXin |
Submission Time | 2023-11-08 13:19:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:12:26: error: expected ‘;’ before ‘ordertoenter’
12 | int order; cin >> order
| ^
| ;
13 | ordertoenter[order] = index;
| ~~~~~~~~~~~~
gotoschool.cpp:17:9: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘long long int’ to binary ‘operator<<’
17 | count << ordertoenter[i] << " ";
| ~~~~~~^~~~~~~~~~~~~~~~~~
gotoschool.cpp:17:34: error: expected ‘)’ before ‘;’ token
17 | count << ordertoenter[i] << " ";
| ^
| )
gotoschool.cpp:16:31: note: to match this ‘(’
16 |