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_18475764_2356.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_18475764_2356.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_18475764_2356.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_18475764_2356.cpp: In function 'double getSum(Point)':
0_0_18475764_2356.cpp:17:72: error: 'sqrt' was not declared in this scope
   sum+=sqrt((p.x-pnt[i].x)*(p.x-pnt[i].x)+(p.y-pnt[i].y)*(p.y-pnt[i].y));
                                                                        ^
0_0_18475764_2356.cpp: In function 'int cmp(Point, Point)':
0_0_18475764_2356.cpp:23:24: error: 'struct Point' has no member named 'y0'
  if(a.y!=b.y) return a.y0?1:-1; 
                        ^
0_0_18475764_2356.cpp: In function 'double dis(Point, Point)':
0_0_18475764_2356.cpp:28:53: error: 'sqrt' was not declared in this scope
  return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
                                                     ^
0_0_18475764_2356.cpp: In function 'int cross(Point, Point, Point)':
0_0_18475764_2356.cpp:37:24: error: 'dbl' was not declared in this scope
  return dbl(x1*y2-x2*y1);
                        ^
0_0_18475764_2356.cpp: In function 'int graham()':
0_0_18475764_2356.cpp:43:20: error: 'sort' was not declared in this scope
  sort(pnt,pnt+n,cmp);
                    ^
0_0_18475764_2356.cpp:47:10: error: 'i0' was not declared in this scope
  for(i=2;i0&&cross(rec[pos-1],rec[pos],pnt[i])<=0) --pos;
          ^
0_0_18475764_2356.cpp:47:50: error: expected ';' before ')' token
  for(i=2;i0&&cross(rec[pos-1],rec[pos],pnt[i])<=0) --pos;
                                                  ^
0_0_18475764_2356.cpp: At global scope:
0_0_18475764_2356.cpp:50:10: error: 'pos' was not declared in this scope
  int bak=pos;
          ^
0_0_18475764_2356.cpp:51:2: error: expected unqualified-id before 'for'
  for(i=n-1;i>=0;--i){
  ^
0_0_18475764_2356.cpp:51:12: error: 'i' does not name a type
  for(i=n-1;i>=0;--i){
            ^
0_0_18475764_2356.cpp:51:17: error: expected unqualified-id before '--' token
  for(i=n-1;i>=0;--i){
                 ^
0_0_18475764_2356.cpp:55:2: error: expected unqualified-id before 'return'
  return pos;
  ^
0_0_18475764_2356.cpp:56:1: error: expected declaration before '}' token
 }
 ^


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-30 12:09:09, Gzip enabled