0_0_17475323_28395.cpp: In function 'int main()':
0_0_17475323_28395.cpp:27:20: error: 'node' was not declared in this scope
priority_queue<node,vector<node>,cmp> s;
^
0_0_17475323_28395.cpp:27:32: error: the value of 'node' is not usable in a constant expression
priority_queue<node,vector<node>,cmp> s;
^
0_0_17475323_28395.cpp:27:20: note: 'node' was not declared 'constexpr'
priority_queue<node,vector<node>,cmp> s;
^
0_0_17475323_28395.cpp:27:36: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
priority_queue<node,vector<node>,cmp> s;
^
0_0_17475323_28395.cpp:27:36: error: expected a type, got 'node'
0_0_17475323_28395.cpp:27:36: error: template argument 2 is invalid
0_0_17475323_28395.cpp:27:41: error: template argument 1 is invalid
priority_queue<node,vector<node>,cmp> s;
^
0_0_17475323_28395.cpp:27:41: error: template argument 2 is invalid
0_0_17475323_28395.cpp:27:44: error: invalid type in declaration before ';' token
priority_queue<node,vector<node>,cmp> s;
^
0_0_17475323_28395.cpp:32:14: error: expected ';' before 'w'
node w;
^
0_0_17475323_28395.cpp:35:27: error: 'w' was not declared in this scope
scanf("%d%d",&w.p,&w.d);
^
0_0_17475323_28395.cpp:36:15: error: request for member 'push' in 's', which is of non-class type 'int'
s.push(w);
^
0_0_17475323_28395.cpp:39:18: error: request for member 'empty' in 's', which is of non-class type 'int'
while(!s.empty())
^
0_0_17475323_28395.cpp:41:12: error: 'w' was not declared in this scope
w=s.top();
^
0_0_17475323_28395.cpp:41:16: error: request for member 'top' in 's', which is of non-class type 'int'
w=s.top();
^
0_0_17475323_28395.cpp:42:14: error: request for member 'pop' in 's', which is of non-class type 'int'
s.pop();
^
0_0_17475323_28395.cpp:47:19: error: request for member 'push' in 's', which is of non-class type 'int'
s.push(w);
^
0_0_17475323_28395.cpp:50:23: error: 'w' was not declared in this scope
printf("%d\n",w.p);
^
|