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_39140411_301.cpp: In function 'void solve(node&, int)':
0_0_39140411_301.cpp:44:17: error: reference to 'ranges' is ambiguous
   44 |         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++/vector:62,
                 from 0_0_39140411_301.cpp:4:
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_39140411_301.cpp:27:14: note:                 'std::vector<node> ranges'
   27 | vector<node> ranges;
      |              ^~~~~~
0_0_39140411_301.cpp:50:35: error: reference to 'ranges' is ambiguous
   50 |                 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_39140411_301.cpp:27:14: note:                 'std::vector<node> ranges'
   27 | vector<node> ranges;
      |              ^~~~~~
0_0_39140411_301.cpp:51:29: error: reference to 'ranges' is ambiguous
   51 |                         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_39140411_301.cpp:27:14: note:                 'std::vector<node> ranges'
   27 | vector<node> ranges;
      |              ^~~~~~
0_0_39140411_301.cpp:52:42: error: reference to 'ranges' is ambiguous
   52 |                                 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_39140411_301.cpp:27:14: note:                 'std::vector<node> ranges'
   27 | vector<node> ranges;
      |              ^~~~~~
0_0_39140411_301.cpp: In function 'void init()':
0_0_39140411_301.cpp:76:9: error: reference to 'ranges' is ambiguous
   76 |         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_39140411_301.cpp:27:14: note:                 'std::vector<node> ranges'
   27 | vector<node> ranges;
      |              ^~~~~~
0_0_39140411_301.cpp: In function 'int main()':
0_0_39140411_301.cpp:94:25: error: reference to 'ranges' is ambiguous
   94 |                         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_39140411_301.cpp:27:14: note:                 'std::vector<node> ranges'
   27 | vector<node> ranges;
      |              ^~~~~~
0_0_39140411_301.cpp:96:22: error: reference to 'ranges' is ambiguous
   96 |                 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_39140411_301.cpp:27:14: note:                 'std::vector<node> ranges'
   27 | vector<node> ranges;
      |              ^~~~~~
0_0_39140411_301.cpp:96:38: error: reference to 'ranges' is ambiguous
   96 |                 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_39140411_301.cpp:27:14: note:                 'std::vector<node> ranges'
   27 | 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-26 04:57:40, Gzip enabled