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_33578278_30716.cpp: In function 'int main()':
0_0_33578278_30716.cpp:72:25: error: reference to 'left' is ambiguous
                         left=0;
                         ^
0_0_33578278_30716.cpp:38:44: note: candidates are: long long int left
             long long int x,j,bc[2509],zhi,left,right,mid;
                                            ^
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 0_0_33578278_30716.cpp:7:
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_33578278_30716.cpp:73:25: error: reference to 'right' is ambiguous
                         right=zhi;
                         ^
0_0_33578278_30716.cpp:38:49: note: candidates are: long long int right
             long long int x,j,bc[2509],zhi,left,right,mid;
                                                 ^
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 0_0_33578278_30716.cpp:7:
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_33578278_30716.cpp:75:30: error: reference to 'left' is ambiguous
                         mid=(left+right)>>1;
                              ^
0_0_33578278_30716.cpp:38:44: note: candidates are: long long int left
             long long int x,j,bc[2509],zhi,left,right,mid;
                                            ^
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 0_0_33578278_30716.cpp:7:
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_33578278_30716.cpp:75:35: error: reference to 'right' is ambiguous
                         mid=(left+right)>>1;
                                   ^
0_0_33578278_30716.cpp:38:49: note: candidates are: long long int right
             long long int x,j,bc[2509],zhi,left,right,mid;
                                                 ^
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 0_0_33578278_30716.cpp:7:
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_33578278_30716.cpp:78:29: error: reference to 'right' is ambiguous
                             right=mid-1;
                             ^
0_0_33578278_30716.cpp:38:49: note: candidates are: long long int right
             long long int x,j,bc[2509],zhi,left,right,mid;
                                                 ^
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 0_0_33578278_30716.cpp:7:
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_33578278_30716.cpp:82:29: error: reference to 'left' is ambiguous
                             left=mid+1;
                             ^
0_0_33578278_30716.cpp:38:44: note: candidates are: long long int left
             long long int x,j,bc[2509],zhi,left,right,mid;
                                            ^
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 0_0_33578278_30716.cpp:7:
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_33578278_30716.cpp:89:28: error: reference to 'left' is ambiguous
                         if(left<=right)
                            ^
0_0_33578278_30716.cpp:38:44: note: candidates are: long long int left
             long long int x,j,bc[2509],zhi,left,right,mid;
                                            ^
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 0_0_33578278_30716.cpp:7:
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_33578278_30716.cpp:89:34: error: reference to 'right' is ambiguous
                         if(left<=right)
                                  ^
0_0_33578278_30716.cpp:38:49: note: candidates are: long long int right
             long long int x,j,bc[2509],zhi,left,right,mid;
                                                 ^
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 0_0_33578278_30716.cpp:7:
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)
   ^


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-16 20:11:43, Gzip enabled