F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                       ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-17 03:36:20, Gzip enabled