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_13895664_32395.cpp:2:9: error: too many decimal points in number
 a:array[0..100000]of int64;
         ^
0_0_13895664_32395.cpp:1:1: error: 'var' does not name a type
 var
 ^
0_0_13895664_32395.cpp:3:1: error: 'n' does not name a type
 n,p,i,x,ans:longint;
 ^
0_0_13895664_32395.cpp:4:1: error: 'function' does not name a type
 function max(a,b:longint):longint;
 ^
0_0_13895664_32395.cpp:5:1: error: 'begin' does not name a type
 begin
 ^
0_0_13895664_32395.cpp:6:27: error: expected constructor, destructor, or type conversion before '(' token
   if a>b then exit(a);exit(b);
                           ^
0_0_13895664_32395.cpp:7:1: error: 'end' does not name a type
 end;
 ^
0_0_13895664_32395.cpp:9:1: error: 'function' does not name a type
 function find(l,r,xx:longint):longint;
 ^
0_0_13895664_32395.cpp:10:1: error: 'var' does not name a type
 var
 ^
0_0_13895664_32395.cpp:12:1: error: 'begin' does not name a type
 begin
 ^
0_0_13895664_32395.cpp:14:3: error: 'mid' does not name a type
   mid:=(l+r) div 2+1;
   ^
0_0_13895664_32395.cpp:15:3: error: expected unqualified-id before 'if'
   if a[mid]>xx then
   ^
0_0_13895664_32395.cpp:17:1: error: 'end' does not name a type
 end;
 ^
0_0_13895664_32395.cpp:20:1: error: 'procedure' does not name a type
 procedure kp(l,r:longint);
 ^
0_0_13895664_32395.cpp:21:1: error: 'var' does not name a type
 var
 ^
0_0_13895664_32395.cpp:23:1: error: 'begin' does not name a type
 begin
 ^
0_0_13895664_32395.cpp:24:8: error: 'j' does not name a type
   i:=l;j:=r;
        ^
0_0_13895664_32395.cpp:25:3: error: 'mid' does not name a type
   mid:=a[(i+j) div 2];
   ^
0_0_13895664_32395.cpp:26:3: error: 'repeat' does not name a type
   repeat
   ^
0_0_13895664_32395.cpp:29:5: error: expected unqualified-id before 'while'
     while a[j]>mid do
     ^
0_0_13895664_32395.cpp:31:5: error: expected unqualified-id before 'if'
     if i<=j then
     ^
0_0_13895664_32395.cpp:33:17: error: 'a' does not name a type
         x:=a[i];a[i]:=a[j];a[j]:=x;
                 ^
0_0_13895664_32395.cpp:33:28: error: 'a' does not name a type
         x:=a[i];a[i]:=a[j];a[j]:=x;
                            ^
0_0_13895664_32395.cpp:34:12: error: expected constructor, destructor, or type conversion before '(' token
         inc(i);dec(j);
            ^
0_0_13895664_32395.cpp:34:19: error: expected constructor, destructor, or type conversion before '(' token
         inc(i);dec(j);
                   ^
0_0_13895664_32395.cpp:35:7: error: 'end' does not name a type
       end;
       ^
0_0_13895664_32395.cpp:36:3: error: 'until' does not name a type
   until i>j;
   ^
0_0_13895664_32395.cpp:37:3: error: expected unqualified-id before 'if'
   if l<j then kp(l,j);
   ^
0_0_13895664_32395.cpp:38:3: error: expected unqualified-id before 'if'
   if i<r then kp(i,r);
   ^
0_0_13895664_32395.cpp:39:1: error: 'end' does not name a type
 end;
 ^
0_0_13895664_32395.cpp:41:1: error: 'begin' does not name a type
 begin
 ^
0_0_13895664_32395.cpp:45:5: error: expected unqualified-id before 'for'
     for i:=1 to n do
     ^
0_0_13895664_32395.cpp:48:9: error: 'a' does not name a type
         a[i]:=a[i] mod p;
         ^
0_0_13895664_32395.cpp:49:7: error: 'end' does not name a type
       end;
       ^
0_0_13895664_32395.cpp:50:5: error: 'readln' does not name a type
     readln;
     ^
0_0_13895664_32395.cpp:51:7: error: expected constructor, destructor, or type conversion before '(' token
     kp(1,n);
       ^
0_0_13895664_32395.cpp:52:5: error: 'ans' does not name a type
     ans:=0;
     ^
0_0_13895664_32395.cpp:53:5: error: expected unqualified-id before 'for'
     for i:=1 to n do
     ^
0_0_13895664_32395.cpp:56:9: error: 'x' does not name a type
         x:=find(1,n,p-1-a[i]);
         ^
0_0_13895664_32395.cpp:57:9: error: expected unqualified-id before 'if'
         if (x=i)and(i=1) then continue;
         ^
0_0_13895664_32395.cpp:58:9: error: expected unqualified-id before 'if'
         if x=i then dec(x);
         ^
0_0_13895664_32395.cpp:59:9: error: 'ans' does not name a type
         ans:=max(ans,a[i]+a[x]);
         ^
0_0_13895664_32395.cpp:60:7: error: 'end' does not name a type
       end;
       ^
0_0_13895664_32395.cpp:61:12: error: expected constructor, destructor, or type conversion before '(' token
     writeln(ans);
            ^
0_0_13895664_32395.cpp:62:3: error: 'end' does not name a type
   end;
   ^
0_0_13895664_32395.cpp:63:1: error: 'end' does not name a type
 end.
 ^


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.015600(s) query 1, Server time : 2024-07-06 00:35:47, Gzip enabled