0_0_37844831_1908.cpp: In function 'void work()':
0_0_37844831_1908.cpp:144:14: error: expected unqualified-id before '[' token
auto [sz1,id1] = pq.top(); pq.pop();
^
0_0_37844831_1908.cpp:145:14: error: expected unqualified-id before '[' token
auto [sz2,id2] = pq.top(); pq.pop();
^
0_0_37844831_1908.cpp:146:18: error: 'id1' was not declared in this scope
mul(poly[id1],poly[id2]);
^
0_0_37844831_1908.cpp:146:28: error: 'id2' was not declared in this scope
mul(poly[id1],poly[id2]);
^
0_0_37844831_1908.cpp:147:39: error: no matching function for call to 'std::priority_queue<std::pair<int, int> >::push(<brace-enclosed initializer list>)'
pq.push({poly[id1].size(),id1});
^
0_0_37844831_1908.cpp:147:39: 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_37844831_1908.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<int, int>; _Sequence = std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >; _Compare = std::less<std::pair<int, int> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, 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<int, 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<int, int>; _Sequence = std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >; _Compare = std::less<std::pair<int, int> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, 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<int, int> >::value_type&& {aka std::pair<int, int>&&}'
0_0_37844831_1908.cpp:149:10: error: expected unqualified-id before '[' token
auto [sz,id] = pq.top();
^
0_0_37844831_1908.cpp:155:14: error: 'id' was not declared in this scope
if (poly[id].size() >= k+1) printf("%lld\n",poly[id][k]);
^
|