0_0_30729891_25270.cpp: In function 'int dij(int, int*)':
0_0_30729891_25270.cpp:44:44: error: wrong number of template arguments (0, should be 1)
priority_queue<pii,vector<pii>,greater<> >q;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:63:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_30729891_25270.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_30729891_25270.cpp:44:46: error: template argument 3 is invalid
priority_queue<pii,vector<pii>,greater<> >q;
^
0_0_30729891_25270.cpp:44:48: error: invalid type in declaration before ';' token
priority_queue<pii,vector<pii>,greater<> >q;
^
0_0_30729891_25270.cpp:46:7: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(pii(0,s));
^
0_0_30729891_25270.cpp:48:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty()){
^
0_0_30729891_25270.cpp:49:19: error: request for member 'top' in 'q', which is of non-class type 'int'
int u = q.top().second;q.pop();
^
0_0_30729891_25270.cpp:49:34: error: request for member 'pop' in 'q', which is of non-class type 'int'
int u = q.top().second;q.pop();
^
0_0_30729891_25270.cpp:56:19: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(pii(d[v],v));
^
0_0_30729891_25270.cpp: In function 'void dij2(int)':
0_0_30729891_25270.cpp:64:44: error: wrong number of template arguments (0, should be 1)
priority_queue<pii,vector<pii>,greater<> >q;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:63:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:60,
from 0_0_30729891_25270.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_30729891_25270.cpp:64:46: error: template argument 3 is invalid
priority_queue<pii,vector<pii>,greater<> >q;
^
0_0_30729891_25270.cpp:64:48: error: invalid type in declaration before ';' token
priority_queue<pii,vector<pii>,greater<> >q;
^
0_0_30729891_25270.cpp:66:7: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(pii(0,1));
^
0_0_30729891_25270.cpp:68:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty()){
^
0_0_30729891_25270.cpp:69:19: error: request for member 'top' in 'q', which is of non-class type 'int'
int u = q.top().second;q.pop();
^
0_0_30729891_25270.cpp:69:34: error: request for member 'pop' in 'q', which is of non-class type 'int'
int u = q.top().second;q.pop();
^
0_0_30729891_25270.cpp:77:19: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(pii(d[v],v));
^
|