Problem jumps
User yc
Submission Time 2026-04-10 21:01:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

jumps.cpp: In function ‘void init(int, std::vector<int>)’:
jumps.cpp:41:16: error: ‘i’ was not declared in this scope
41 | if (n3[i]!=-1 and n2[i][0]==-1){ swap(n3[i],n2[i][0]);continue;)
| ^
jumps.cpp:41:63: error: continue statement not within a loop
41 | if (n3[i]!=-1 and n2[i][0]==-1){ swap(n3[i],n2[i][0]);continue;)
| ^~~~~~~~
jumps.cpp:41:72: error: expected primary-expression before ‘)’ token
41 | if (n3[i]!=-1 and n2[i][0]==-1){ swap(n3[i],n2[i][0]);continue;)
| ^