0_0_36600647_26113.cpp:12:41: error: wrong number of template arguments (0, should be 1)
priority_queue<int, vector<int>, greater<>> mnq;
^
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++/bits/locale_classes.h:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36600647_26113.cpp:1:
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_36600647_26113.cpp:12:42: error: template argument 3 is invalid
priority_queue<int, vector<int>, greater<>> mnq;
^
0_0_36600647_26113.cpp:12:48: error: invalid type in declaration before ';' token
priority_queue<int, vector<int>, greater<>> mnq;
^
0_0_36600647_26113.cpp: In function 'int main()':
0_0_36600647_26113.cpp:19:25: error: request for member 'empty' in 'mnq', which is of non-class type 'int'
while (!mnq.empty()) mnq.pop();
^
0_0_36600647_26113.cpp:19:38: error: request for member 'pop' in 'mnq', which is of non-class type 'int'
while (!mnq.empty()) mnq.pop();
^
0_0_36600647_26113.cpp:23:26: error: request for member 'push' in 'mnq', which is of non-class type 'int'
else mnq.push(a[r]), mns += a[r];
^
0_0_36600647_26113.cpp:24:28: error: request for member 'size' in 'mnq', which is of non-class type 'int'
while (mnq.size() > mxq.size() + 1) {
^
0_0_36600647_26113.cpp:25:34: error: request for member 'top' in 'mnq', which is of non-class type 'int'
int tp = mnq.top(); mnq.pop();
^
0_0_36600647_26113.cpp:25:45: error: request for member 'pop' in 'mnq', which is of non-class type 'int'
int tp = mnq.top(); mnq.pop();
^
0_0_36600647_26113.cpp:29:41: error: request for member 'size' in 'mnq', which is of non-class type 'int'
while (mxq.size() > mnq.size() + 1) {
^
0_0_36600647_26113.cpp:31:25: error: request for member 'push' in 'mnq', which is of non-class type 'int'
mnq.push(mxq.top());
^
0_0_36600647_26113.cpp:34:31: error: request for member 'empty' in 'mnq', which is of non-class type 'int'
int med = mnq.empty() ? mxq.top() : mnq.top();
^
0_0_36600647_26113.cpp:34:57: error: request for member 'top' in 'mnq', which is of non-class type 'int'
int med = mnq.empty() ? mxq.top() : mnq.top();
^
0_0_36600647_26113.cpp:35:29: error: request for member 'size' in 'mnq', which is of non-class type 'int'
int x = mnq.size(), y = mxq.size();
^
0_0_36600647_26113.cpp:36:46: error: 'y' was not declared in this scope
cost[l][r] = mns - x * med + y * med - mxs;
^
|