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_39461986_28791.cpp: In function 'int main()':
0_0_39461986_28791.cpp:84:67: error: cannot convert 'std::pair<int, int>' to 'int'
   84 |         if (a[i].le <= a[i].re) insert(1, 1, n, a[i].le, a[i].re, pair<int, int>{a[i].x, a[i].y});
      |                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                   |
      |                                                                   std::pair<int, int>
0_0_39461986_28791.cpp:24:54: note:   initializing argument 6 of 'void insert(int, int, int, int, int, int, int)'
   24 | void insert(int now, int l, int r, int x, int y, int u,int v) {
      |                                                  ~~~~^


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-15 00:41:40, Gzip enabled