0_0_33121992_25587.cpp: In function 'void solve()':
0_0_33121992_25587.cpp:133:57: error: wrong number of template arguments (0, should be 1)
priority_queue<string,vector<string>,greater<>>pq;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_33121992_25587.cpp:9:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:358:12: error: provided for 'template<class _Tp> struct std::greater'
struct greater : public binary_function<_Tp, _Tp, bool>
^
0_0_33121992_25587.cpp:133:58: error: template argument 3 is invalid
priority_queue<string,vector<string>,greater<>>pq;
^
0_0_33121992_25587.cpp:133:62: error: invalid type in declaration before ';' token
priority_queue<string,vector<string>,greater<>>pq;
^
0_0_33121992_25587.cpp:141:24: error: request for member 'push' in 'pq', which is of non-class type 'int'
pq.push(ss);
^
0_0_33121992_25587.cpp:145:20: error: request for member 'empty' in 'pq', which is of non-class type 'int'
if(!pq.empty()) l=mid+1,ans[mid]=pq.top();
^
0_0_33121992_25587.cpp:145:49: error: request for member 'top' in 'pq', which is of non-class type 'int'
if(!pq.empty()) l=mid+1,ans[mid]=pq.top();
^
|