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_17124165_18636.cpp:1:19: error: too many decimal points in number
 var f,s,q,a:array[0..1000008]of int64;
                   ^
0_0_17124165_18636.cpp:1:1: error: 'var' does not name a type
 var f,s,q,a:array[0..1000008]of int64;
 ^
0_0_17124165_18636.cpp:2:5: error: 'n' does not name a type
     n,m,l,r,i:longint;
     ^
0_0_17124165_18636.cpp:3:1: error: 'function' does not name a type
 function slop(j,k:longint):extended;
 ^
0_0_17124165_18636.cpp:4:1: error: 'begin' does not name a type
 begin exit((f[j]+sqr(s[j])-f[k]-sqr(s[k]))/(s[j]-s[k])); end;
 ^
0_0_17124165_18636.cpp:4:58: error: 'end' does not name a type
 begin exit((f[j]+sqr(s[j])-f[k]-sqr(s[k]))/(s[j]-s[k])); end;
                                                          ^
0_0_17124165_18636.cpp:5:1: error: 'begin' does not name a type
 begin
 ^
0_0_17124165_18636.cpp:9:3: error: expected unqualified-id before 'for'
   for i:=1 to n do begin read(a[i]); s[i]:=s[i-1]+a[i]; end;
   ^
0_0_17124165_18636.cpp:9:38: error: 's' does not name a type
   for i:=1 to n do begin read(a[i]); s[i]:=s[i-1]+a[i]; end;
                                      ^
0_0_17124165_18636.cpp:9:57: error: 'end' does not name a type
   for i:=1 to n do begin read(a[i]); s[i]:=s[i-1]+a[i]; end;
                                                         ^
0_0_17124165_18636.cpp:10:3: error: 'l' does not name a type
   l:=1; r:=1; q[1]:=0;
   ^
0_0_17124165_18636.cpp:10:9: error: 'r' does not name a type
   l:=1; r:=1; q[1]:=0;
         ^
0_0_17124165_18636.cpp:10:15: error: 'q' does not name a type
   l:=1; r:=1; q[1]:=0;
               ^
0_0_17124165_18636.cpp:11:3: error: expected unqualified-id before 'for'
   for i:=1 to n do
   ^
0_0_17124165_18636.cpp:14:7: error: 'f' does not name a type
       f[i]:=f[q[l]]+sqr(s[i]-s[q[l]])+m;
       ^
0_0_17124165_18636.cpp:15:7: error: expected unqualified-id before 'while'
       while (l<r)and(slop(i,q[r-1])<slop(q[r],q[r-1])) do dec(r);
       ^
0_0_17124165_18636.cpp:16:10: error: expected constructor, destructor, or type conversion before '(' token
       inc(r); q[r]:=i;
          ^
0_0_17124165_18636.cpp:16:15: error: 'q' does not name a type
       inc(r); q[r]:=i;
               ^
0_0_17124165_18636.cpp:17:5: error: 'end' does not name a type
     end;
     ^
0_0_17124165_18636.cpp:18:10: error: expected constructor, destructor, or type conversion before '(' token
   writeln(f[n]);
          ^
0_0_17124165_18636.cpp:19:3: error: 'end' does not name a type
   end;
   ^
0_0_17124165_18636.cpp:20: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.000000(s) query 1, Server time : 2024-11-25 08:45:22, Gzip enabled