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_39140403_7775.cpp: In function 'void solve(node&, int)':
0_0_39140403_7775.cpp:43:17: error: reference to 'ranges' is ambiguous
   43 |         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_39140403_7775.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_39140403_7775.cpp:26:14: note:                 'std::vector<node> ranges'
   26 | vector<node> ranges;
      |              ^~~~~~
0_0_39140403_7775.cpp:49:35: error: reference to 'ranges' is ambiguous
   49 |                 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_39140403_7775.cpp:26:14: note:                 'std::vector<node> ranges'
   26 | vector<node> ranges;
      |              ^~~~~~
0_0_39140403_7775.cpp:50:29: error: reference to 'ranges' is ambiguous
   50 |                         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_39140403_7775.cpp:26:14: note:                 'std::vector<node> ranges'
   26 | vector<node> ranges;
      |              ^~~~~~
0_0_39140403_7775.cpp:51:42: error: reference to 'ranges' is ambiguous
   51 |                                 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_39140403_7775.cpp:26:14: note:                 'std::vector<node> ranges'
   26 | vector<node> ranges;
      |              ^~~~~~
0_0_39140403_7775.cpp: In function 'void init()':
0_0_39140403_7775.cpp:75:9: error: reference to 'ranges' is ambiguous
   75 |         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_39140403_7775.cpp:26:14: note:                 'std::vector<node> ranges'
   26 | vector<node> ranges;
      |              ^~~~~~
0_0_39140403_7775.cpp: In function 'int main()':
0_0_39140403_7775.cpp:93:25: error: reference to 'ranges' is ambiguous
   93 |                         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_39140403_7775.cpp:26:14: note:                 'std::vector<node> ranges'
   26 | vector<node> ranges;
      |              ^~~~~~
0_0_39140403_7775.cpp:95:22: error: reference to 'ranges' is ambiguous
   95 |                 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_39140403_7775.cpp:26:14: note:                 'std::vector<node> ranges'
   26 | vector<node> ranges;
      |              ^~~~~~
0_0_39140403_7775.cpp:95:38: error: reference to 'ranges' is ambiguous
   95 |                 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_39140403_7775.cpp:26:14: note:                 'std::vector<node> ranges'
   26 | vector<node> ranges;
      |              ^~~~~~
0_0_39140403_7775.cpp:95:17: error: 'sort' was not declared in this scope; did you mean 'short'?
   95 |                 sort(ranges.begin(), ranges.end());
      |                 ^~~~
      |                 short


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 22:18:48, Gzip enabled