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_20775599_3179.cpp:3:32: error: too many decimal points in number
     f                   :array[0..6010,0..2] of longint;
                                ^
0_0_20775599_3179.cpp:3:40: error: too many decimal points in number
     f                   :array[0..6010,0..2] of longint;
                                        ^
0_0_20775599_3179.cpp:4:32: error: too many decimal points in number
     v,pre,other,last    :array[0..6010] of longint;
                                ^
0_0_20775599_3179.cpp:5:32: error: too many decimal points in number
     flag                :array[0..6010] of boolean;
                                ^
0_0_20775599_3179.cpp:1:1: error: expected unqualified-id before '<' token
 <pre name="code" class="plain">var
 ^
0_0_20775599_3179.cpp:3:25: error: found ':' in nested-name-specifier, expected '::'
     f                   :array[0..6010,0..2] of longint;
                         ^
0_0_20775599_3179.cpp:3:5: error: 'f' does not name a type
     f                   :array[0..6010,0..2] of longint;
     ^
0_0_20775599_3179.cpp:4:5: error: 'v' does not name a type
     v,pre,other,last    :array[0..6010] of longint;
     ^
0_0_20775599_3179.cpp:5:25: error: found ':' in nested-name-specifier, expected '::'
     flag                :array[0..6010] of boolean;
                         ^
0_0_20775599_3179.cpp:5:5: error: 'flag' does not name a type
     flag                :array[0..6010] of boolean;
     ^
0_0_20775599_3179.cpp:6:25: error: found ':' in nested-name-specifier, expected '::'
     i                   :longint;
                         ^
0_0_20775599_3179.cpp:6:5: error: 'i' does not name a type
     i                   :longint;
     ^
0_0_20775599_3179.cpp:7:1: error: 'function' does not name a type
 function max(a,b:longint):Longint;
 ^
0_0_20775599_3179.cpp:8:1: error: 'begin' does not name a type
 begin
 ^
0_0_20775599_3179.cpp:10:1: error: 'end' does not name a type
 end;
 ^
0_0_20775599_3179.cpp:12:1: error: 'procedure' does not name a type
 procedure connect(x,y:longint);
 ^
0_0_20775599_3179.cpp:13:1: error: 'begin' does not name a type
 begin
 ^
0_0_20775599_3179.cpp:15:4: error: 'pre' does not name a type
    pre[l]:=last[x];
    ^
0_0_20775599_3179.cpp:16:4: error: 'last' does not name a type
    last[x]:=l;
    ^
0_0_20775599_3179.cpp:17:4: error: 'other' does not name a type
    other[l]:=y;
    ^
0_0_20775599_3179.cpp:18:1: error: 'end' does not name a type
 end;
 ^
0_0_20775599_3179.cpp:20:1: error: 'procedure' does not name a type
 procedure dfs(x:longint);
 ^
0_0_20775599_3179.cpp:21:1: error: 'var' does not name a type
 var
 ^
0_0_20775599_3179.cpp:23:1: error: 'begin' does not name a type
 begin
 ^
0_0_20775599_3179.cpp:25:4: error: expected unqualified-id before 'if'
    if (q=0) then
    ^
0_0_20775599_3179.cpp:28:7: error: 'f' does not name a type
       f[x,0]:=0;
       ^
0_0_20775599_3179.cpp:29:7: error: 'exit' does not name a type
       exit;
       ^
0_0_20775599_3179.cpp:30:4: error: 'end' does not name a type
    end;
    ^
0_0_20775599_3179.cpp:31:4: error: 'f' does not name a type
    f[x,1]:=v[x];
    ^
0_0_20775599_3179.cpp:32:4: error: expected unqualified-id before 'while'
    while (q<>0) do
    ^
0_0_20775599_3179.cpp:35:10: error: expected constructor, destructor, or type conversion before '(' token
       dfs(p);
          ^
0_0_20775599_3179.cpp:36:7: error: 'f' does not name a type
       f[x,1]:=f[x,1]+f[p,0];
       ^
0_0_20775599_3179.cpp:37:7: error: 'f' does not name a type
       f[x,0]:=f[x,0]+max(f[p,0],f[p,1]);
       ^
0_0_20775599_3179.cpp:38:7: error: 'q' does not name a type
       q:=pre[q];
       ^
0_0_20775599_3179.cpp:39:4: error: 'end' does not name a type
    end;
    ^
0_0_20775599_3179.cpp:40:1: error: 'end' does not name a type
 end;
 ^
0_0_20775599_3179.cpp:42:1: error: 'begin' does not name a type
 begin
 ^
0_0_20775599_3179.cpp:44:4: error: expected unqualified-id before 'for'
    for i:=1 to n do read(v[i]);
    ^
0_0_20775599_3179.cpp:45:8: error: expected constructor, destructor, or type conversion before '(' token
    read(a,b);
        ^
0_0_20775599_3179.cpp:46:4: error: expected unqualified-id before 'while'
    while (a<>0) or (b<>0) do
    ^
0_0_20775599_3179.cpp:49:14: error: expected constructor, destructor, or type conversion before '(' token
       connect(b,a);
              ^
0_0_20775599_3179.cpp:50:11: error: expected constructor, destructor, or type conversion before '(' token
       read(a,b);
           ^
0_0_20775599_3179.cpp:51:4: error: 'end' does not name a type
    end;
    ^
0_0_20775599_3179.cpp:52:4: error: expected unqualified-id before 'for'
    for i:=1 to n do
    ^
0_0_20775599_3179.cpp:54:7: error: expected constructor, destructor, or type conversion before '(' token
    dfs(i);
       ^
0_0_20775599_3179.cpp:55:11: error: expected constructor, destructor, or type conversion before '(' token
    writeln(max(f[i,0],f[i,1]));
           ^
0_0_20775599_3179.cpp:56: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-12-02 10:29:42, Gzip enabled