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_39140422_9340.cpp: In function 'void solve(node&, int)':
0_0_39140422_9340.cpp:52:13: error: reference to 'ranges' is ambiguous
   52 |     int n = ranges.size();
      |             ^~~~~~
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 0_0_39140422_9340.cpp:6:
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_39140422_9340.cpp:36:14: note:                 'std::vector<node> ranges'
   36 | vector<node> ranges;
      |              ^~~~~~
0_0_39140422_9340.cpp:58:27: error: reference to 'ranges' is ambiguous
   58 |         while (idx < n && ranges[idx].a <= ii) {
      |                           ^~~~~~
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_39140422_9340.cpp:36:14: note:                 'std::vector<node> ranges'
   36 | vector<node> ranges;
      |              ^~~~~~
0_0_39140422_9340.cpp:59:17: error: reference to 'ranges' is ambiguous
   59 |             if (ranges[idx].b >= jj)
      |                 ^~~~~~
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_39140422_9340.cpp:36:14: note:                 'std::vector<node> ranges'
   36 | vector<node> ranges;
      |              ^~~~~~
0_0_39140422_9340.cpp:60:26: error: reference to 'ranges' is ambiguous
   60 |                 que.push(ranges[idx].b);
      |                          ^~~~~~
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_39140422_9340.cpp:36:14: note:                 'std::vector<node> ranges'
   36 | vector<node> ranges;
      |              ^~~~~~
0_0_39140422_9340.cpp: In function 'void init()':
0_0_39140422_9340.cpp:84:5: error: reference to 'ranges' is ambiguous
   84 |     ranges.clear();
      |     ^~~~~~
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_39140422_9340.cpp:36:14: note:                 'std::vector<node> ranges'
   36 | vector<node> ranges;
      |              ^~~~~~
0_0_39140422_9340.cpp: In function 'int main()':
0_0_39140422_9340.cpp:108:13: error: reference to 'ranges' is ambiguous
  108 |             ranges.push_back({a, b});
      |             ^~~~~~
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_39140422_9340.cpp:36:14: note:                 'std::vector<node> ranges'
   36 | vector<node> ranges;
      |              ^~~~~~
0_0_39140422_9340.cpp:110:14: error: reference to 'ranges' is ambiguous
  110 |         sort(ranges.begin(), ranges.end());
      |              ^~~~~~
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_39140422_9340.cpp:36:14: note:                 'std::vector<node> ranges'
   36 | vector<node> ranges;
      |              ^~~~~~
0_0_39140422_9340.cpp:110:30: error: reference to 'ranges' is ambiguous
  110 |         sort(ranges.begin(), ranges.end());
      |                              ^~~~~~
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_39140422_9340.cpp:36:14: note:                 'std::vector<node> ranges'
   36 | vector<node> 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 21:58:36, Gzip enabled