Problem | sandwich |
---|---|
User | Pan |
Submission Time | 2024-08-02 21:13:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sandwich.cpp:41:4: error: expected initializer before ‘group’
41 | ll group[2500005], hi[2500005];
| ^~~~~
sandwich.cpp: In function ‘int main()’:
sandwich.cpp:125:26: error: ‘group’ was not declared in this scope; did you mean ‘grp’?
125 | if (last[a[i]] > nxt) group[i] = group[last[a[i]]];
| ^~~~~
| grp
sandwich.cpp:126:8: error: ‘group’ was not declared in this scope; did you mean ‘grp’?
126 | else group[i] = grp++;
| ^~~~~
| grp
sandwich.cpp:128:9: error: ‘group’ was not declared in this scope; did you mean ‘grp’?
128 | ingrp[group[i]].pb(i);
| ^~~~~
| grp
sandwich.cpp:130:23: error: ‘hi’ was not declared in this scope; did you mean ‘i’?
130 | for (pi u: que[i]) {hi[u.s] = *lb(all(dq), u.f); }
| ^~
| i
sandwich.cpp:141:13: