Main.cpp: In function 'void slv()':
Main.cpp:20:9: error: expected ',' or ';' before 'long'
20 | long long b=pq.front().first;
| ^~~~
Main.cpp:22:12: error: 'b' was not declared in this scope
22 | if(b>=g){
| ^
Main.cpp:29:31: error: 'b' was not declared in this scope
29 | pq.push_back({b+mp[a][i.first],i.first});
| ^
Main.cpp:29:56: error: no matching function for call to 'std::deque<std::pair<int, int> >::push_back(<brace-enclosed initializer list>)'
29 | pq.push_back({b+mp[a][i.first],i.first});
| ^
In file included from /usr/include/c++/10/deque:67,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:68,
from Main.cpp:1:
/usr/include/c++/10/bits/stl_deque.h:1493:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::deque<_Tp, _Alloc>::value_type = std::pair<int, int>]'
1493 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_deque.h:1493:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::pair<int, int>&'}
1493 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_deque.h:1508:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(std::deque<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::deque<_Tp, _Alloc>::value_type = std::pair<int, int>]'
1508 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_deque.h:1508:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::deque<std::pair<int, int> >::value_type&&' {aka 'std::pair<int, int>&&'}
1508 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~