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_14525643_2763.cpp:4:16: error: too many decimal points in number
   a,dp,s:array[0..150,0..1005] of longint;
                ^
0_0_14525643_2763.cpp:4:23: error: too many decimal points in number
   a,dp,s:array[0..150,0..1005] of longint;
                       ^
0_0_14525643_2763.cpp:5:21: error: too many decimal points in number
   q,ansl,ansr:array[0..1005] of longint;
                     ^
0_0_14525643_2763.cpp:1:7: error: 'maxn' does not name a type
 const maxn=1005;
       ^
0_0_14525643_2763.cpp:2:1: error: 'var' does not name a type
 var
 ^
0_0_14525643_2763.cpp:4:3: error: 'a' does not name a type
   a,dp,s:array[0..150,0..1005] of longint;
   ^
0_0_14525643_2763.cpp:5:3: error: 'q' does not name a type
   q,ansl,ansr:array[0..1005] of longint;
   ^
0_0_14525643_2763.cpp:8:1: error: 'function' does not name a type
 function max(a,b:longint):longint;
 ^
0_0_14525643_2763.cpp:9:1: error: 'begin' does not name a type
 begin
 ^
0_0_14525643_2763.cpp:11:1: error: 'end' does not name a type
 end;
 ^
0_0_14525643_2763.cpp:13:1: error: 'begin' does not name a type
 begin
 ^
0_0_14525643_2763.cpp:17:15: error: expected constructor, destructor, or type conversion before '(' token
       fillchar(s,sizeof(s),0);
               ^
0_0_14525643_2763.cpp:18:15: error: expected constructor, destructor, or type conversion before '(' token
       fillchar(dp,sizeof(dp),0);
               ^
0_0_14525643_2763.cpp:19:7: error: expected unqualified-id before 'for'
       for i:=1 to n do
       ^
0_0_14525643_2763.cpp:23:13: error: 's' does not name a type
             s[i,j]:=s[i,j-1]+a[i,j];
             ^
0_0_14525643_2763.cpp:24:11: error: 'end' does not name a type
           end;
           ^
0_0_14525643_2763.cpp:25:7: error: expected unqualified-id before 'for'
       for i:=n downto 1 do
       ^
0_0_14525643_2763.cpp:27:17: error: 'r' does not name a type
           l:=0; r:=0; q[r]:=1; inc(r); ansl[1]:=1;
                 ^
0_0_14525643_2763.cpp:27:23: error: 'q' does not name a type
           l:=0; r:=0; q[r]:=1; inc(r); ansl[1]:=1;
                       ^
0_0_14525643_2763.cpp:27:35: error: expected constructor, destructor, or type conversion before '(' token
           l:=0; r:=0; q[r]:=1; inc(r); ansl[1]:=1;
                                   ^
0_0_14525643_2763.cpp:27:40: error: 'ansl' does not name a type
           l:=0; r:=0; q[r]:=1; inc(r); ansl[1]:=1;
                                        ^
0_0_14525643_2763.cpp:28:11: error: expected unqualified-id before 'for'
           for j:=2 to m do
           ^
0_0_14525643_2763.cpp:31:15: error: 'q' does not name a type
               q[r]:=j; inc(r);
               ^
0_0_14525643_2763.cpp:31:27: error: expected constructor, destructor, or type conversion before '(' token
               q[r]:=j; inc(r);
                           ^
0_0_14525643_2763.cpp:32:15: error: expected unqualified-id before 'if'
               if q[l]+t<j then inc(l);
               ^
0_0_14525643_2763.cpp:33:15: error: 'ansl' does not name a type
               ansl[j]:=q[l];
               ^
0_0_14525643_2763.cpp:34:13: error: 'end' does not name a type
             end;
             ^
0_0_14525643_2763.cpp:35:11: error: 'l' does not name a type
           l:=0; r:=0; q[r]:=m; inc(r); ansr[m]:=m;
           ^
0_0_14525643_2763.cpp:35:17: error: 'r' does not name a type
           l:=0; r:=0; q[r]:=m; inc(r); ansr[m]:=m;
                 ^
0_0_14525643_2763.cpp:35:23: error: 'q' does not name a type
           l:=0; r:=0; q[r]:=m; inc(r); ansr[m]:=m;
                       ^
0_0_14525643_2763.cpp:35:35: error: expected constructor, destructor, or type conversion before '(' token
           l:=0; r:=0; q[r]:=m; inc(r); ansr[m]:=m;
                                   ^
0_0_14525643_2763.cpp:35:40: error: 'ansr' does not name a type
           l:=0; r:=0; q[r]:=m; inc(r); ansr[m]:=m;
                                        ^
0_0_14525643_2763.cpp:36:11: error: expected unqualified-id before 'for'
           for j:=m-1 downto 1 do
           ^
0_0_14525643_2763.cpp:39:15: error: 'q' does not name a type
               q[r]:=j; inc(r);
               ^
0_0_14525643_2763.cpp:39:27: error: expected constructor, destructor, or type conversion before '(' token
               q[r]:=j; inc(r);
                           ^
0_0_14525643_2763.cpp:40:15: error: expected unqualified-id before 'if'
               if q[l]-t>j then inc(l);
               ^
0_0_14525643_2763.cpp:41:15: error: 'ansr' does not name a type
               ansr[j]:=q[l];
               ^
0_0_14525643_2763.cpp:42:13: error: 'end' does not name a type
             end;
             ^
0_0_14525643_2763.cpp:43:11: error: expected unqualified-id before 'for'
           for j:=1 to m do
           ^
0_0_14525643_2763.cpp:46:15: error: 't2' does not name a type
               t2:=dp[i+1,ansr[j]]+s[i,ansr[j]]-s[i,j-1];
               ^
0_0_14525643_2763.cpp:47:15: error: 'dp' does not name a type
               dp[i,j]:=max(t1,t2);
               ^
0_0_14525643_2763.cpp:48:13: error: 'end' does not name a type
             end;
             ^
0_0_14525643_2763.cpp:49:9: error: 'end' does not name a type
         end;
         ^
0_0_14525643_2763.cpp:50:14: error: expected constructor, destructor, or type conversion before '(' token
       writeln(dp[1,x]);
              ^
0_0_14525643_2763.cpp:51:5: error: 'end' does not name a type
     end;
     ^
0_0_14525643_2763.cpp:52: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-26 16:13:45, Gzip enabled