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_39681607_15314.cpp:27:10: error: conflicting declaration 'st e [500005]'
   27 | }t[N<<2],e[N];
      |          ^
0_0_39681607_15314.cpp:8:23: note: previous declaration as 'std::vector<std::pair<long long int, long long int> > e [500005]'
    8 | vector<pair<int,int> >e[N];
      |                       ^
0_0_39681607_15314.cpp: In function 'void build(long long int, long long int, long long int)':
0_0_39681607_15314.cpp:51:30: error: 'class std::vector<std::pair<long long int, long long int> >' has no member named 'm1'
   51 |                 t[p].m1=e[l].m1;
      |                              ^~
0_0_39681607_15314.cpp:52:30: error: 'class std::vector<std::pair<long long int, long long int> >' has no member named 'm2'
   52 |                 t[p].m2=e[l].m2;
      |                              ^~
0_0_39681607_15314.cpp: In function 'int main()':
0_0_39681607_15314.cpp:78:41: error: 'class std::vector<std::pair<long long int, long long int> >' has no member named 'm1'
   78 |         for(int i=1;i<=m;i++) cin>>e[i].m1>>e[i].m2;
      |                                         ^~
0_0_39681607_15314.cpp:78:50: error: 'class std::vector<std::pair<long long int, long long int> >' has no member named 'm2'
   78 |         for(int i=1;i<=m;i++) cin>>e[i].m1>>e[i].m2;
      |                                                  ^~


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-23 02:42:14, Gzip enabled