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_22207831_12335.cpp:36:3: error: 'P' does not name a type
 } P[105], ch[105];
   ^
0_0_22207831_12335.cpp:117:1: error: expected '}' at end of input
 }
 ^
0_0_22207831_12335.cpp: In member function 'double Point::operator*(const Point&) const':
0_0_22207831_12335.cpp:31:5: error: a function-definition is not allowed here before '{' token
     {
     ^
0_0_22207831_12335.cpp: In member function 'bool Point::cmp(Point, Point)':
0_0_22207831_12335.cpp:48:25: error: 'P' was not declared in this scope
     if(dcmp(xmult(a, b, P[0])) == 0){
                         ^
0_0_22207831_12335.cpp: In member function 'int Point::Graham(int)':
0_0_22207831_12335.cpp:58:12: error: 'P' was not declared in this scope
         if(P[i].y < P[s].y || (P[i].y == P[s].y && P[i].x < P[s].x)){
            ^
0_0_22207831_12335.cpp:63:21: error: 'P' was not declared in this scope
         Point tmp = P[0];
                     ^
0_0_22207831_12335.cpp:67:10: error: 'P' was not declared in this scope
     sort(P+1, P+n, cmp);
          ^
0_0_22207831_12335.cpp:68:5: error: 'ch' was not declared in this scope
     ch[0] = P[0], ch[1] = P[1];
     ^
0_0_22207831_12335.cpp: In member function 'int Point::main()':
0_0_22207831_12335.cpp:91:30: error: 'P' was not declared in this scope
             scanf("%lf%lf", &P[i].x, &P[i].y);
                              ^
0_0_22207831_12335.cpp:97:35: error: 'ch' was not declared in this scope
             double sum = Distance(ch[0], ch[t-1]);
                                   ^
0_0_22207831_12335.cpp:107:35: error: 'P' was not declared in this scope
             double dis = Distance(P[0], P[1]);
                                   ^
0_0_22207831_12335.cpp: At global scope:
0_0_22207831_12335.cpp:117:1: error: expected unqualified-id at end of input
 }
 ^


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