| Problem | aoi_umbrella |
|---|---|
| User | pasit |
| Submission Time | 2026-08-11 09:22:46 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
aoi_umbrella.cpp: In function ‘void solve()’:
aoi_umbrella.cpp:45:30: error: ‘u’ was not declared in this scope
45 | for(auto [v,w] : adj[u]){
| ^
aoi_umbrella.cpp:52:33: error: no matching function for call to ‘std::priority_queue<std::pair<int, std::pair<int, int> >, std::vector<std::pair<int, std::pair<int, int> > >, std::greater<std::pair<int, std::pair<int, int> > > >::push(<brace-enclosed initializer list>)’
52 | q.push({dep+1,{v,u}});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from aoi_umbrella.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, std::pair<int, i