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_13875114_5764.cpp:11:19: error: expected ';' at end of member declaration
  Point(int x,int y)x(x),y(y):{ }
                   ^
0_0_13875114_5764.cpp:11:22: error: 'x' is not a type
  Point(int x,int y)x(x),y(y):{ }
                      ^
0_0_13875114_5764.cpp:11:24: error: 'int Point::x(int)' conflicts with a previous declaration
  Point(int x,int y)x(x),y(y):{ }
                        ^
0_0_13875114_5764.cpp:9:6: note: previous declaration 'int Point::x'
  int x,y,num;
      ^
0_0_13875114_5764.cpp:11:27: error: 'y' is not a type
  Point(int x,int y)x(x),y(y):{ }
                           ^
0_0_13875114_5764.cpp:11:32: error: 'int Point::y(int)' conflicts with a previous declaration
  Point(int x,int y)x(x),y(y):{ }
                                ^
0_0_13875114_5764.cpp:9:8: note: previous declaration 'int Point::y'
  int x,y,num;
        ^
0_0_13875114_5764.cpp: In member function 'int Point::y(int)':
0_0_13875114_5764.cpp:11:30: error: only constructors take member initializers
  Point(int x,int y)x(x),y(y):{ }
                              ^
0_0_13875114_5764.cpp:11:30: error: expected identifier before '{' token
0_0_13875114_5764.cpp: In member function 'bool Point::operator<(Point) const':
0_0_13875114_5764.cpp:13:49: error: invalid use of member (did you forget the '&' ?)
  bool operator<(const Point p)const {return x<p.x||x==p.x&&y<p.y;}
                                                 ^
0_0_13875114_5764.cpp:13:49: error: invalid use of member (did you forget the '&' ?)
0_0_13875114_5764.cpp:13:57: error: invalid use of member (did you forget the '&' ?)
  bool operator<(const Point p)const {return x<p.x||x==p.x&&y<p.y;}
                                                         ^
0_0_13875114_5764.cpp:13:57: error: invalid use of member (did you forget the '&' ?)
0_0_13875114_5764.cpp:13:64: error: invalid use of member (did you forget the '&' ?)
  bool operator<(const Point p)const {return x<p.x||x==p.x&&y<p.y;}
                                                                ^
0_0_13875114_5764.cpp:13:64: error: invalid use of member (did you forget the '&' ?)
0_0_13875114_5764.cpp: In member function 'bool Point::operator==(Point) const':
0_0_13875114_5764.cpp:14:51: error: invalid use of member (did you forget the '&' ?)
  bool operator==(const Point p)const {return x==p.x&&y==p.y;}
                                                   ^
0_0_13875114_5764.cpp:14:51: error: invalid use of member (did you forget the '&' ?)
0_0_13875114_5764.cpp:14:59: error: invalid use of member (did you forget the '&' ?)
  bool operator==(const Point p)const {return x==p.x&&y==p.y;}
                                                           ^
0_0_13875114_5764.cpp:14:59: error: invalid use of member (did you forget the '&' ?)
0_0_13875114_5764.cpp: In member function 'Point Point::operator-(Point)':
0_0_13875114_5764.cpp:15:44: error: invalid use of member (did you forget the '&' ?)
  Point operator-(Point p){return Point(x-p.x,y-p.y); }
                                            ^
0_0_13875114_5764.cpp:15:44: error: invalid use of member (did you forget the '&' ?)
0_0_13875114_5764.cpp:15:50: error: invalid use of member (did you forget the '&' ?)
  Point operator-(Point p){return Point(x-p.x,y-p.y); }
                                                  ^
0_0_13875114_5764.cpp:15:50: error: invalid use of member (did you forget the '&' ?)
0_0_13875114_5764.cpp: In member function 'int Point::det(Point)':
0_0_13875114_5764.cpp:16:30: error: invalid use of member (did you forget the '&' ?)
  int det(Point p){return x*p.y-y*p.x; }
                              ^
0_0_13875114_5764.cpp:16:30: error: invalid use of member (did you forget the '&' ?)
0_0_13875114_5764.cpp:16:36: error: invalid use of member (did you forget the '&' ?)
  int det(Point p){return x*p.y-y*p.x; }
                                    ^
0_0_13875114_5764.cpp:16:36: error: invalid use of member (did you forget the '&' ?)
0_0_13875114_5764.cpp: In function 'int main()':
0_0_13875114_5764.cpp:67:12: error: invalid use of member (did you forget the '&' ?)
     pp[m].x=xx[i]+505;
            ^
0_0_13875114_5764.cpp:68:12: error: invalid use of member (did you forget the '&' ?)
     pp[m].y=yy[i]+505;
            ^


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