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_39780513_3331.cpp: In function 'void pbs(int, int, std::vector<event>&)':
0_0_39780513_3331.cpp:114:37: error: invalid types 'int[int]' for array subscript
  114 |             int curval = bit.query(r[id].fi, r[id].se);
      |                                     ^
0_0_39780513_3331.cpp:114:47: error: invalid types 'int[int]' for array subscript
  114 |             int curval = bit.query(r[id].fi, r[id].se);
      |                                               ^
0_0_39780513_3331.cpp: In function 'int main()':
0_0_39780513_3331.cpp:10:12: error: request for member 'push_back' in 'r', which is of non-class type 'int'
   10 | #define pb push_back
      |            ^~~~~~~~~
0_0_39780513_3331.cpp:167:15: note: in expansion of macro 'pb'
  167 |             r.pb({l, r});
      |               ^~


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 05:14:38, Gzip enabled