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_37775559_25446.cpp: In function 'int main()':
0_0_37775559_25446.cpp:41:15: error: reference to 'left' is ambiguous
   out.clear();left.clear();right.clear();
               ^
0_0_37775559_25446.cpp:10:17: note: candidates are: std::multiset<long long int> left
 multiset<ll>out,left,right;
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37775559_25446.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:916:3: note:                 std::ios_base& std::left(std::ios_base&)
   left(ios_base& __base)
   ^
0_0_37775559_25446.cpp:41:28: error: reference to 'right' is ambiguous
   out.clear();left.clear();right.clear();
                            ^
0_0_37775559_25446.cpp:10:22: note: candidates are: std::multiset<long long int> right
 multiset<ll>out,left,right;
                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37775559_25446.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:924:3: note:                 std::ios_base& std::right(std::ios_base&)
   right(ios_base& __base)
   ^
0_0_37775559_25446.cpp:51:6: error: reference to 'left' is ambiguous
      left.insert(t[a[now].id].x);
      ^
0_0_37775559_25446.cpp:10:17: note: candidates are: std::multiset<long long int> left
 multiset<ll>out,left,right;
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37775559_25446.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:916:3: note:                 std::ios_base& std::left(std::ios_base&)
   left(ios_base& __base)
   ^
0_0_37775559_25446.cpp:55:6: error: reference to 'left' is ambiguous
      left.erase(left.find(t[a[now].id].x));
      ^
0_0_37775559_25446.cpp:10:17: note: candidates are: std::multiset<long long int> left
 multiset<ll>out,left,right;
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37775559_25446.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:916:3: note:                 std::ios_base& std::left(std::ios_base&)
   left(ios_base& __base)
   ^
0_0_37775559_25446.cpp:55:17: error: reference to 'left' is ambiguous
      left.erase(left.find(t[a[now].id].x));
                 ^
0_0_37775559_25446.cpp:10:17: note: candidates are: std::multiset<long long int> left
 multiset<ll>out,left,right;
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37775559_25446.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:916:3: note:                 std::ios_base& std::left(std::ios_base&)
   left(ios_base& __base)
   ^
0_0_37775559_25446.cpp:56:6: error: reference to 'right' is ambiguous
      right.insert(t[a[now].id].x);
      ^
0_0_37775559_25446.cpp:10:22: note: candidates are: std::multiset<long long int> right
 multiset<ll>out,left,right;
                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37775559_25446.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:924:3: note:                 std::ios_base& std::right(std::ios_base&)
   right(ios_base& __base)
   ^
0_0_37775559_25446.cpp:60:6: error: reference to 'right' is ambiguous
      right.erase(right.find(t[a[now].id].x));
      ^
0_0_37775559_25446.cpp:10:22: note: candidates are: std::multiset<long long int> right
 multiset<ll>out,left,right;
                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37775559_25446.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:924:3: note:                 std::ios_base& std::right(std::ios_base&)
   right(ios_base& __base)
   ^
0_0_37775559_25446.cpp:60:18: error: reference to 'right' is ambiguous
      right.erase(right.find(t[a[now].id].x));
                  ^
0_0_37775559_25446.cpp:10:22: note: candidates are: std::multiset<long long int> right
 multiset<ll>out,left,right;
                      ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37775559_25446.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:924:3: note:                 std::ios_base& std::right(std::ios_base&)
   right(ios_base& __base)
   ^
0_0_37775559_25446.cpp:65:7: error: reference to 'left' is ambiguous
    if(left.size()) ans[q[i].id]=max(ans[q[i].id],*(--left.end())-q[i].x);
       ^
0_0_37775559_25446.cpp:10:17: note: candidates are: std::multiset<long long int> left
 multiset<ll>out,left,right;
                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_37775559_25446.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:916:3: note:                 std::ios_base& std::left(std::ios_base&)
   left(ios_base& __base)
   ^
0_0_37775559_25446.cpp:65:54: error: reference to 'left' is ambiguous
    if(left.size()) ans[q[i].id]=max(ans[q[i].id],*(--left.end())-q[i].x);
                                                      ^
0_0_37775559_25446.cpp:10:17: note: candidates are: std::multis


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 22:26:44, Gzip enabled