Problem | potatoqueue |
---|---|
User | hwy |
Submission Time | 2023-06-10 21:57:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatoqueue.cpp:12:1: error: declaration of ‘auto index’ has no initializer
12 | auto index;
| ^~~~
potatoqueue.cpp: In function ‘int query(int)’:
potatoqueue.cpp:36:9: error: overloaded function with no contextual type information
36 | copy = sorted_q;
| ^~~~~~~~
potatoqueue.cpp:37:17: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
37 | sort(copy, copy+N);
| ~~~~^~
potatoqueue.cpp:38:32: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
38 | index = upper_bound(copy, copy+N, make_pair(q[N-1], MAXN)) - copy;
| ~~~~^~
potatoqueue.cpp:39:12: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator==’
39 | if (index == N) {
| ~~~~~~^~~~
potatoqueue.cpp:42:20: error: in