Problem | invasion |
---|---|
User | Pan |
Submission Time | 2024-03-03 11:21:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
invasion.cpp: In function ‘void insert(ll)’:
invasion.cpp:98:6: error: expected ‘(’ before ‘if’
98 | if if (nxt==s.end() || nxt==s.begin()) {prevv= --s.end(); nxt=s.begin();}
| ^~
| (
invasion.cpp:99:3: error: expected ‘}’ before ‘else’
99 | else {prevv = nxt--;}
| ^~~~
invasion.cpp:96:2: note: to match this ‘{’
96 | {
| ^
invasion.cpp:99:9: error: ‘prevv’ was not declared in this scope; did you mean ‘pre’?
99 | else {prevv = nxt--;}
| ^~~~~
| pre
invasion.cpp:99:17: error: ‘nxt’ was not declared in this scope
99 | else {prevv = nxt--;}
| ^~~
invasion.cpp:100:17: error: ‘nxt’ was not declared in this scope
100 | dist -= depth[nxt->s] - depth[lca(nxt->s, prevv->s)];
| ^~~
invasion.cpp:100:45: error: ‘prevv’ was not declared in this scope; did you mean ‘pre’?
100 | dist -= de