Problem | escalation |
---|---|
User | xp |
Submission Time | 2024-03-15 16:08:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
escalation.cpp: In function ‘int32_t main()’:
escalation.cpp:69:2: error: ‘memset’ was not declared in this scope
69 | memset(p, -1, sizeof p);
| ^~~~~~
escalation.cpp:4:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
3 | #include <vector>
+++ |+#include <cstring>
4 | using namespace std;
escalation.cpp:75:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
75 | sort(edges, edges+n-1);
| ^~~~
| qsort
escalation.cpp:100:12: error: ‘upper_bound’ was not declared in this scope
100 | int it = upper_bound(levels.begin(), levels.end(), x) - levels.begin() - 1;
| ^~~~~~~~~~~