0_0_38145476_18144.cpp: In function 'void work()':
0_0_38145476_18144.cpp:34:8: error: expected unqualified-id before '[' token
auto [sum,it]=p.top();p.pop();
^
0_0_38145476_18144.cpp:35:3: error: 'sum' was not declared in this scope
sum=-sum;
^
0_0_38145476_18144.cpp:36:8: error: expected unqualified-id before '[' token
auto [l,x]=it;
^
0_0_38145476_18144.cpp:37:18: error: 'x' was not declared in this scope
for(int i=head[x];i;i=Next[i])
^
0_0_38145476_18144.cpp:39:7: error: 'l' was not declared in this scope
if(l+edge[i]<(__int128)l*(1<<lim[i])) continue;
^
0_0_38145476_18144.cpp:40:23: error: 'l' was not declared in this scope
double price=log2((l+edge[i])/l);
^
0_0_38145476_18144.cpp:49:29: error: no matching function for call to 'std::priority_queue<std::pair<double, std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)'
p.push({-sum-price,{l,y}});
^
0_0_38145476_18144.cpp:49:29: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
from 0_0_38145476_18144.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<double, std::pair<long long int, long long int> >; _Sequence = std::vector<std::pair<double, std::pair<long long int, long long int> >, std::allocator<std::pair<double, std::pair<long long int, long long int> > > >; _Compare = std::less<std::pair<double, std::pair<long long int, long long int> > >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<double, std::pair<long long int, long long int> >]
push(const value_type& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:499:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const std::pair<double, std::pair<long long int, long long int> >&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::pair<double, std::pair<long long int, long long int> >; _Sequence = std::vector<std::pair<double, std::pair<long long int, long long int> >, std::allocator<std::pair<double, std::pair<long long int, long long int> > > >; _Compare = std::less<std::pair<double, std::pair<long long int, long long int> > >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<double, std::pair<long long int, long long int> >]
push(value_type&& __x)
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:507:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::pair<double, std::pair<long long int, long long int> > >::value_type&& {aka std::pair<double, std::pair<long long int, long long int> >&&}'
|