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_39684325_6847.cpp:48:32: error: 'cmp' was not declared in this scope; did you mean 'mp'?
   48 | priority_queue<fd, vector<fd>, cmp> pq;
      |                                ^~~
      |                                mp
0_0_39684325_6847.cpp:48:35: error: template argument 3 is invalid
   48 | priority_queue<fd, vector<fd>, cmp> pq;
      |                                   ^
0_0_39684325_6847.cpp: In function 'void solve()':
0_0_39684325_6847.cpp:73:16: error: request for member 'push' in 'pq', which is of non-class type 'int'
   73 |             pq.push(a[ii]);
      |                ^~~~
0_0_39684325_6847.cpp:76:21: error: request for member 'size' in 'pq', which is of non-class type 'int'
   76 |         if(pp >= pq.size())
      |                     ^~~~
0_0_39684325_6847.cpp:78:23: error: request for member 'empty' in 'pq', which is of non-class type 'int'
   78 |             while(!pq.empty())
      |                       ^~~~~
0_0_39684325_6847.cpp:80:32: error: request for member 'top' in 'pq', which is of non-class type 'int'
   80 |                 mp[cnt++] = pq.top().name;
      |                                ^~~
0_0_39684325_6847.cpp:81:20: error: request for member 'pop' in 'pq', which is of non-class type 'int'
   81 |                 pq.pop();
      |                    ^~~
0_0_39684325_6847.cpp:87:28: error: request for member 'top' in 'pq', which is of non-class type 'int'
   87 |             mp[cnt++] = pq.top().name;
      |                            ^~~
0_0_39684325_6847.cpp:88:16: error: request for member 'pop' in 'pq', which is of non-class type 'int'
   88 |             pq.pop();
      |                ^~~
0_0_39684325_6847.cpp:95:16: error: request for member 'push' in 'pq', which is of non-class type 'int'
   95 |             pq.push(a[i]);
      |                ^~~~
0_0_39684325_6847.cpp:98:15: error: request for member 'empty' in 'pq', which is of non-class type 'int'
   98 |     while(!pq.empty())
      |               ^~~~~
0_0_39684325_6847.cpp:100:24: error: request for member 'top' in 'pq', which is of non-class type 'int'
  100 |         mp[cnt++] = pq.top().name;
      |                        ^~~
0_0_39684325_6847.cpp:101:12: error: request for member 'pop' in 'pq', which is of non-class type 'int'
  101 |         pq.pop();
      |            ^~~


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