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_33158160_14774.cpp:22:25: error: 'point' was not declared in this scope
 priority_queue <pair<ll,point>> qu;
                         ^
0_0_33158160_14774.cpp:22:25: error: template argument 2 is invalid
0_0_33158160_14774.cpp:22:30: error: template argument 1 is invalid
 priority_queue <pair<ll,point>> qu;
                              ^
0_0_33158160_14774.cpp:22:30: error: template argument 2 is invalid
0_0_33158160_14774.cpp:22:30: error: template argument 3 is invalid
0_0_33158160_14774.cpp:22:35: error: invalid type in declaration before ';' token
 priority_queue <pair<ll,point>> qu;
                                   ^
0_0_33158160_14774.cpp: In function 'void query(point, int, int, int)':
0_0_33158160_14774.cpp:57:11: error: request for member 'size' in 'qu', which is of non-class type 'int'
     if(qu.size()<k){
           ^
0_0_33158160_14774.cpp:58:32: error: request for member 'push' in 'qu', which is of non-class type 'int'
         if(head.first!=0)   qu.push(head);
                                ^
0_0_33158160_14774.cpp:61:26: error: request for member 'top' in 'qu', which is of non-class type 'int'
         if(head.first<qu.top().first && head.first!=0){
                          ^
0_0_33158160_14774.cpp:62:16: error: request for member 'pop' in 'qu', which is of non-class type 'int'
             qu.pop();
                ^
0_0_33158160_14774.cpp:63:16: error: request for member 'push' in 'qu', which is of non-class type 'int'
             qu.push(head);
                ^
0_0_33158160_14774.cpp:65:42: error: request for member 'top' in 'qu', which is of non-class type 'int'
         if(dis(tree[rt],aim,select) < qu.top().first)   fg = true;
                                          ^
0_0_33158160_14774.cpp: In function 'int main()':
0_0_33158160_14774.cpp:90:16: error: cannot convert 'std::priority_queue<std::pair<long long int, point> >' to 'int' in assignment
             qu = priority_queue<pair<ll,point>>{};
                ^
0_0_33158160_14774.cpp:92:22: error: request for member 'top' in 'qu', which is of non-class type 'int'
             debug(qu.top().first);
                      ^
0_0_33158160_14774.cpp:10:24: note: in definition of macro 'debug'
 #define debug(x) cout<<x<<"\n"
                        ^


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-25 14:46:33, Gzip enabled