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_36679648_32270.cpp: In function 'int main()':
0_0_36679648_32270.cpp:79:32: error: reference to 'left' is ambiguous
          scanf("%lf%lf%lf%lf",&left.x,&left.y,&right.x,&right.y);
                                ^
0_0_36679648_32270.cpp:30:8: note: candidates are: point left
  point left,right,s;
        ^
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++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36679648_32270.cpp:2:
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_36679648_32270.cpp:79:40: error: reference to 'left' is ambiguous
          scanf("%lf%lf%lf%lf",&left.x,&left.y,&right.x,&right.y);
                                        ^
0_0_36679648_32270.cpp:30:8: note: candidates are: point left
  point left,right,s;
        ^
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++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36679648_32270.cpp:2:
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_36679648_32270.cpp:79:48: error: reference to 'right' is ambiguous
          scanf("%lf%lf%lf%lf",&left.x,&left.y,&right.x,&right.y);
                                                ^
0_0_36679648_32270.cpp:30:13: note: candidates are: point right
  point left,right,s;
             ^
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++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36679648_32270.cpp:2:
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_36679648_32270.cpp:79:57: error: reference to 'right' is ambiguous
          scanf("%lf%lf%lf%lf",&left.x,&left.y,&right.x,&right.y);
                                                         ^
0_0_36679648_32270.cpp:30:13: note: candidates are: point right
  point left,right,s;
             ^
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++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36679648_32270.cpp:2:
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_36679648_32270.cpp:81:20: error: reference to 'left' is ambiguous
          p1=cut( p,left,right );
                    ^
0_0_36679648_32270.cpp:30:8: note: candidates are: point left
  point left,right,s;
        ^
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++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36679648_32270.cpp:2:
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_36679648_32270.cpp:81:25: error: reference to 'right' is ambiguous
          p1=cut( p,left,right );
                         ^
0_0_36679648_32270.cpp:30:13: note: candidates are: point right
  point left,right,s;
             ^
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++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36679648_32270.cpp:2:
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_36679648_32270.cpp:82:20: error: reference to 'right' is ambiguous
          p2=cut( p,right,left );
                    ^
0_0_36679648_32270.cpp:30:13: note: candidates are: point right
  point left,right,s;
             ^
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++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36679648_32270.cpp:2:
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_36679648_32270.cpp:82:26: error: reference to 'left' is ambiguous
          p2=cut( p,right,left );
                          ^
0_0_36679648_32270.cpp:30:8: note: candidates are: point left
  point left,right,s;
        ^
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++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_36679648_32270.cpp:2:
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)
   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001001(s) query 1, Server time : 2025-01-10 17:40:14, Gzip enabled