| Problem | photo |
|---|---|
| User | highdelao |
| Submission Time | 2025-02-06 00:42:02 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
photo.cpp: In function ‘int main()’:
photo.cpp:24:9: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
24 | sort(heights[i].begin(), heights[i].end());
| ^~~~
| qsort
photo.cpp:47:13: error: ‘pointers’ was not declared in this scope
47 | if (pointers[class_idx] + 1 >= s) {
| ^~~~~~~~
photo.cpp:51:9: error: ‘pointers’ was not declared in this scope
51 | pointers[class_idx]++;
| ^~~~~~~~
photo.cpp:52:69: error: no matching function for call to ‘std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, std::greater<std::pair<int, int> > >::push(<brace-enclosed initializer list>)’
52 | pq.push({heights[class_idx][pointers[class_idx]], class_idx});
| ^
In file included from /usr/include/c++/9/qu