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_24501274_19759.cpp:15:13: error: too many decimal points in number
   p,s:array[0..maxn]of point;
             ^
0_0_24501274_19759.cpp:1:1: error: 'program' does not name a type
 program QJ;
 ^
0_0_24501274_19759.cpp:2:1: error: 'uses' does not name a type
 uses math;
 ^
0_0_24501274_19759.cpp:4:3: error: 'maxn' does not name a type
   maxn=1000;
   ^
0_0_24501274_19759.cpp:5:1: error: 'type' does not name a type
 type
 ^
0_0_24501274_19759.cpp:8:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:9:3: error: 'line' does not name a type
   line=record
   ^
0_0_24501274_19759.cpp:11:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:12:1: error: 'var' does not name a type
 var
 ^
0_0_24501274_19759.cpp:14:3: error: 'dl' does not name a type
   dl,dr,du,dd,d,ans:double;
   ^
0_0_24501274_19759.cpp:15:3: error: 'p' does not name a type
   p,s:array[0..maxn]of point;
   ^
0_0_24501274_19759.cpp:16:3: error: 'line_l' does not name a type
   line_l,line_r,line_u,line_d:line;
   ^
0_0_24501274_19759.cpp:18:1: error: 'function' does not name a type
 function dcmp(x:double):shortint;
 ^
0_0_24501274_19759.cpp:19:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:21:5: error: expected unqualified-id before 'if'
     if x>0 then exit(1)else exit(-1);
     ^
0_0_24501274_19759.cpp:22:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:24:1: error: 'function' does not name a type
 function apoint(x,y:double):point;
 ^
0_0_24501274_19759.cpp:25:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:27:5: error: 'apoint' does not name a type
     apoint.y:=y;
     ^
0_0_24501274_19759.cpp:28:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:29:1: error: 'function' does not name a type
 function aline(x,y:point):line;
 ^
0_0_24501274_19759.cpp:30:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:32:5: error: 'aline' does not name a type
     aline.v:=y;
     ^
0_0_24501274_19759.cpp:33:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:34:1: error: 'procedure' does not name a type
 procedure rotate(var a:point;d:double);
 ^
0_0_24501274_19759.cpp:34:30: error: 'd' does not name a type
 procedure rotate(var a:point;d:double);
                              ^
0_0_24501274_19759.cpp:35:3: error: 'var' does not name a type
   var b:point;
   ^
0_0_24501274_19759.cpp:36:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:38:5: error: 'a' does not name a type
     a:=apoint(b.x*cos(d)-b.y*sin(d),b.x*sin(d)+b.y*cos(d));
     ^
0_0_24501274_19759.cpp:39:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:40:11: error: expected constructor, destructor, or type conversion before '(' token
 operator -(a,b:point)c:point;
           ^
0_0_24501274_19759.cpp:41:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:43:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:44:1: error: 'function' does not name a type
 function cross(a,b:point):double;
 ^
0_0_24501274_19759.cpp:45:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:47:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:49:1: error: 'function' does not name a type
 function dot(a,b:point):double;
 ^
0_0_24501274_19759.cpp:50:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:52:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:53:1: error: 'function' does not name a type
 function length(a:point):double;
 ^
0_0_24501274_19759.cpp:54:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:56:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:57:1: error: 'function' does not name a type
 function angle(a,b:point):double;
 ^
0_0_24501274_19759.cpp:58:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:60:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:61:1: error: 'function' does not name a type
 function dist(a,b:line):double;
 ^
0_0_24501274_19759.cpp:62:3: error: 'var' does not name a type
   var
   ^
0_0_24501274_19759.cpp:64:5: error: 'd' does not name a type
     d:double;
     ^
0_0_24501274_19759.cpp:65:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:67:5: error: 'd' does not name a type
     d:=angle(c,b.v);
     ^
0_0_24501274_19759.cpp:68:9: error: expected constructor, destructor, or type conversion before '(' token
     exit(length(c)*sin(d));
         ^
0_0_24501274_19759.cpp:69:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:71:11: error: expected constructor, destructor, or type conversion before '(' token
 operator <(a,b:point)c:boolean;
           ^
0_0_24501274_19759.cpp:72:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:75:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:77:1: error: 'procedure' does not name a type
 procedure sort(l,r:longint);
 ^
0_0_24501274_19759.cpp:78:3: error: 'var' does not name a type
   var
   ^
0_0_24501274_19759.cpp:80:5: error: 'i' does not name a type
     i,j:longint;
     ^
0_0_24501274_19759.cpp:81:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:83:5: error: 'x' does not name a type
     x:=p[(l+r)>>1];
     ^
0_0_24501274_19759.cpp:84:5: error: 'i' does not name a type
     i:=l;j:=r;
     ^
0_0_24501274_19759.cpp:84:10: error: 'j' does not name a type
     i:=l;j:=r;
          ^
0_0_24501274_19759.cpp:85:5: error: expected unqualified-id before 'while'
     while i<=j do
     ^
0_0_24501274_19759.cpp:88:8: error: expected unqualified-id before 'while'
        while x<p[j] do dec(j);
        ^
0_0_24501274_19759.cpp:89:8: error: expected unqualified-id before 'if'
        if i<=j then
        ^
0_0_24501274_19759.cpp:91:19: error: 'p' does not name a type
           t:=p[i];p[i]:=p[j];p[j]:=t;
                   ^
0_0_24501274_19759.cpp:91:30: error: 'p' does not name a type
           t:=p[i];p[i]:=p[j];p[j]:=t;
                              ^
0_0_24501274_19759.cpp:92:14: error: expected constructor, destructor, or type conversion before '(' token
           inc(i);dec(j);
              ^
0_0_24501274_19759.cpp:92:21: error: expected constructor, destructor, or type conversion before '(' token
           inc(i);dec(j);
                     ^
0_0_24501274_19759.cpp:93:9: error: 'end' does not name a type
         end;
         ^
0_0_24501274_19759.cpp:94:6: error: 'end' does not name a type
      end;
      ^
0_0_24501274_19759.cpp:95:9: error: expected constructor, destructor, or type conversion before '(' token
     sort(l,j);sort(i,r);
         ^
0_0_24501274_19759.cpp:95:19: error: expected constructor, destructor, or type conversion before '(' token
     sort(l,j);sort(i,r);
                   ^
0_0_24501274_19759.cpp:96:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:98:1: error: 'function' does not name a type
 function next(a:longint):longint;
 ^
0_0_24501274_19759.cpp:99:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:101:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:102:1: error: 'procedure' does not name a type
 procedure update;
 ^
0_0_24501274_19759.cpp:103:3: error: 'var' does not name a type
   var
   ^
0_0_24501274_19759.cpp:105:3: error: 'begin' does not name a type
   begin
   ^
0_0_24501274_19759.cpp:107:5: error: 'b' does not name a type
     b:=dist(line_u,line_d);
     ^
0_0_24501274_19759.cpp:108:5: error: 's' does not name a type
     s:=a*b;
     ^
0_0_24501274_19759.cpp:109:5: error: expected unqualified-id before 'if'
     if s<ans then ans:=s;
     ^
0_0_24501274_19759.cpp:110:3: error: 'end' does not name a type
   end;
   ^
0_0_24501274_19759.cpp:112:1: error: 'begin' does not name a type
 begin
 ^
0_0_24501274_19759.cpp:114:3: error: expected unqualified-id before 'for'
   for t:=1 to t do
   ^
0_0_24501274_19759.cpp:118:5: error: 'n' does not name a type
     n:=0;
     ^
0_0_24501274_19759.cpp:119:5: error: expected unqualified-id before 'for'
     for i:=1 to k do
     ^
0_0_24501274_19759.cpp:124:15: error: expected constructor, destructor, or type conversion before '(' token
           read(p[n].x,p[n].y);
               ^
0_0_24501274_19759.cpp:125:9: error: 'end' does not name a type
         end;
         ^
0_0_24501274_19759.cpp:126:8: error: 'readln' does not name a type
        readln;
        ^
0_0_24501274_19759.cpp:127:6: error: 'end' does not name a type
      end;
      ^
0_0_24501274_19759.cpp:129:10: error: expected constructor, destructor, or type conversion before '(' token
      sort(1,n);
          ^
0_0_24501274_19759.cpp:130:6: error: 'top' does not name a type
      top:=0;
      ^
0_0_24501274_19759.cpp:131:6: error: expected unqualified-id before 'for'
      for i:=1 to n do
      ^
0_0_24501274_19759.cpp:134:12: error: expected constructor, destructor, or type conversion before '(' token
         inc(top);s[top]:=


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-23 05:52:36, Gzip enabled