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_38772427_110.cpp: In function 'int main()':
0_0_38772427_110.cpp:86:62: error: no type named 'value_type' in 'struct std::less<int>'
   86 |                         priority_queue<pair<int,int>,less<int>> q;
      |                                                              ^~
0_0_38772427_110.cpp:86:62: error: template argument 3 is invalid
0_0_38772427_110.cpp:87:53: error: request for member 'push' in 'q', which is of non-class type 'int'
   87 |                         for(int i=pos2;i<=tot;i++)q.push(make_pair(i,i));
      |                                                     ^~~~


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 13:09:00, Gzip enabled