Problem routers
User jeongwonho64
Submission Time 2023-05-18 18:49:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

routers.cpp: In function ‘int main()’:
routers.cpp:18:26: error: ‘class std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >’ has no member named ‘begin’
18 | m = *(--upper_bound(v.begin(),v.end(),pi(dist+1,0)));
| ^~~~~
routers.cpp:18:36: error: ‘class std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >’ has no member named ‘end’
18 | m = *(--upper_bound(v.begin(),v.end(),pi(dist+1,0)));
| ^~~
routers.cpp:20:26: error: ‘class std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater&l