| Problem | photo |
|---|---|
| User | Memeathon |
| Submission Time | 2025-02-06 11:01:55 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
photo.cpp: In function ‘int main()’:
photo.cpp:13:22: error: ‘i’ was not declared in this scope
13 | cin >> a[i][j];
| ^
photo.cpp:15:16: error: ‘i’ was not declared in this scope
15 | sort(a[i], a[i]+s);
| ^
photo.cpp:16:29: 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>)’
16 | pq.push({a[i][0], i});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from photo.cpp:1:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: ‘void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<int, int&g