Problem sightseeing2
User SJY123
Submission Time 2024-06-03 00:59:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sightseeing2.cpp:61:2: error: expected unqualified-id before ‘for’
61 | for(int j = 1; j <= q; j++){
| ^~~
sightseeing2.cpp:61:17: error: ‘j’ does not name a type; did you mean ‘jn’?
61 | for(int j = 1; j <= q; j++){
| ^
| jn
sightseeing2.cpp:61:25: error: ‘j’ does not name a type; did you mean ‘jn’?
61 | for(int j = 1; j <= q; j++){
| ^
| jn
sightseeing2.cpp:68:2: error: expected unqualified-id before ‘return’
68 | return 0;
| ^~~~~~
sightseeing2.cpp:69:1: error: expected declaration before ‘}’ token
69 | }
| ^