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_37339818_21087.cpp:16:16: error: 'Pos' was not declared in this scope
 priority_queue<Pos> pq;
                ^
0_0_37339818_21087.cpp:16:19: error: template argument 1 is invalid
 priority_queue<Pos> pq;
                   ^
0_0_37339818_21087.cpp:16:19: error: template argument 2 is invalid
0_0_37339818_21087.cpp:16:19: error: template argument 3 is invalid
0_0_37339818_21087.cpp:16:23: error: invalid type in declaration before ';' token
 priority_queue<Pos> pq;
                       ^
0_0_37339818_21087.cpp: In function 'int getAns()':
0_0_37339818_21087.cpp:30:13: error: request for member 'empty' in 'pq', which is of non-class type 'int'
  while (!pq.empty()) pq.pop();
             ^
0_0_37339818_21087.cpp:30:25: error: request for member 'pop' in 'pq', which is of non-class type 'int'
  while (!pq.empty()) pq.pop();
                         ^
0_0_37339818_21087.cpp:31:5: error: request for member 'push' in 'pq', which is of non-class type 'int'
  pq.push(Pos(sx, sy, 0));
     ^
0_0_37339818_21087.cpp:33:13: error: request for member 'empty' in 'pq', which is of non-class type 'int'
  while (!pq.empty()) {
             ^
0_0_37339818_21087.cpp:34:15: error: request for member 'top' in 'pq', which is of non-class type 'int'
   Pos ps = pq.top();
               ^
0_0_37339818_21087.cpp:35:6: error: request for member 'pop' in 'pq', which is of non-class type 'int'
   pq.pop();
      ^
0_0_37339818_21087.cpp:54:7: error: request for member 'push' in 'pq', which is of non-class type 'int'
    pq.push(Pos(nx, ny, nv));
       ^


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-09-28 17:26:25, Gzip enabled