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_39780512_29621.cpp: In function 'void pbs(int, int, std::vector<event>&)':
0_0_39780512_29621.cpp:114:36: error: reference to 'ranges' is ambiguous
  114 |             int curval = bit.query(ranges[id].fi, ranges[id].se);
      |                                    ^~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:37,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:65,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:64,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:60,
                 from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/concepts:179:13: note: candidates are: 'namespace std::ranges { }'
  179 |   namespace ranges
      |             ^~~~~~
0_0_39780512_29621.cpp:64:13: note:                 'std::vector<std::pair<int, int> > ranges'
   64 | vector<pii> ranges;
      |             ^~~~~~
0_0_39780512_29621.cpp:114:51: error: reference to 'ranges' is ambiguous
  114 |             int curval = bit.query(ranges[id].fi, ranges[id].se);
      |                                                   ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/concepts:179:13: note: candidates are: 'namespace std::ranges { }'
  179 |   namespace ranges
      |             ^~~~~~
0_0_39780512_29621.cpp:64:13: note:                 'std::vector<std::pair<int, int> > ranges'
   64 | vector<pii> ranges;
      |             ^~~~~~
0_0_39780512_29621.cpp: In function 'int main()':
0_0_39780512_29621.cpp:167:13: error: reference to 'ranges' is ambiguous
  167 |             ranges.pb({l, r});
      |             ^~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/concepts:179:13: note: candidates are: 'namespace std::ranges { }'
  179 |   namespace ranges
      |             ^~~~~~
0_0_39780512_29621.cpp:64:13: note:                 'std::vector<std::pair<int, int> > ranges'
   64 | vector<pii> ranges;
      |             ^~~~~~


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-22 08:00:51, Gzip enabled