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_21544281_23067.cpp:3:20: error: too many decimal points in number
         tree:array[1..100000] of longint;
                    ^
0_0_21544281_23067.cpp:1:1: error: 'var' does not name a type
 var
 ^
0_0_21544281_23067.cpp:3:13: error: found ':' in nested-name-specifier, expected '::'
         tree:array[1..100000] of longint;
             ^
0_0_21544281_23067.cpp:3:9: error: 'tree' does not name a type
         tree:array[1..100000] of longint;
         ^
0_0_21544281_23067.cpp:4:9: error: 'ch' does not name a type
         ch,epy:char;
         ^
0_0_21544281_23067.cpp:5:9: error: 'ml' does not name a type
         ml,ept:string;
         ^
0_0_21544281_23067.cpp:7:1: error: 'function' does not name a type
 function query(o,l,r:longint):longint;
 ^
0_0_21544281_23067.cpp:8:1: error: 'var' does not name a type
 var
 ^
0_0_21544281_23067.cpp:10:1: error: 'begin' does not name a type
 begin
 ^
0_0_21544281_23067.cpp:12:9: error: 'm' does not name a type
         m:=(l+r) div 2;
         ^
0_0_21544281_23067.cpp:13:9: error: expected unqualified-id before 'if'
         if (x<=l) and (r<=y) then
         ^
0_0_21544281_23067.cpp:16:17: error: 'exit' does not name a type
                 exit;
                 ^
0_0_21544281_23067.cpp:17:9: error: 'end' does not name a type
         end;
         ^
0_0_21544281_23067.cpp:18:9: error: expected unqualified-id before 'if'
         if x<=m then query:=query+query(o*2,l,m);
         ^
0_0_21544281_23067.cpp:19:9: error: expected unqualified-id before 'if'
         if m<y then query:=query+query(o*2+1,m+1,r);
         ^
0_0_21544281_23067.cpp:20:1: error: 'end' does not name a type
 end;
 ^
0_0_21544281_23067.cpp:22:1: error: 'procedure' does not name a type
 procedure add_sub(o,l,r:longint);
 ^
0_0_21544281_23067.cpp:23:1: error: 'var' does not name a type
 var
 ^
0_0_21544281_23067.cpp:25:1: error: 'begin' does not name a type
 begin
 ^
0_0_21544281_23067.cpp:27:9: error: expected unqualified-id before 'if'
         if l=r then
         ^
0_0_21544281_23067.cpp:30:17: error: 'exit' does not name a type
                 exit;
                 ^
0_0_21544281_23067.cpp:31:9: error: 'end' does not name a type
         end;
         ^
0_0_21544281_23067.cpp:32:9: error: expected unqualified-id before 'if'
         if x<=m then add_sub(o*2,l,m);
         ^
0_0_21544281_23067.cpp:33:9: error: expected unqualified-id before 'if'
         if m<x then add_sub(o*2+1,m+1,r);
         ^
0_0_21544281_23067.cpp:34:9: error: 'tree' does not name a type
         tree[o]:=tree[o]+y;
         ^
0_0_21544281_23067.cpp:35:1: error: 'end' does not name a type
 end;
 ^
0_0_21544281_23067.cpp:37:1: error: 'begin' does not name a type
 begin
 ^
0_0_21544281_23067.cpp:39:9: error: expected unqualified-id before 'for'
         for i:=1 to t do
         ^
0_0_21544281_23067.cpp:42:21: error: expected constructor, destructor, or type conversion before '(' token
                 read(n);
                     ^
0_0_21544281_23067.cpp:43:25: error: expected constructor, destructor, or type conversion before '(' token
                 fillchar(tree,sizeof(tree),0);
                         ^
0_0_21544281_23067.cpp:44:17: error: expected unqualified-id before 'for'
                 for j:=n to 2*n-1 do
                 ^
0_0_21544281_23067.cpp:47:29: error: expected constructor, destructor, or type conversion before '(' token
                         read(y);
                             ^
0_0_21544281_23067.cpp:48:32: error: expected constructor, destructor, or type conversion before '(' token
                         add_sub(1,1,n);
                                ^
0_0_21544281_23067.cpp:49:17: error: 'end' does not name a type
                 end;
                 ^
0_0_21544281_23067.cpp:50:17: error: 'ml' does not name a type
                 ml:=ept;
                 ^
0_0_21544281_23067.cpp:51:17: error: 'readln' does not name a type
                 readln;
                 ^
0_0_21544281_23067.cpp:52:17: error: expected unqualified-id before 'while'
                 while ml<>'End' do
                 ^
0_0_21544281_23067.cpp:55:29: error: expected constructor, destructor, or type conversion before '(' token
                         read(ch);
                             ^
0_0_21544281_23067.cpp:56:25: error: expected unqualified-id before 'while'
                         while ch<>' ' do
                         ^
0_0_21544281_23067.cpp:59:37: error: expected constructor, destructor, or type conversion before '(' token
                                 read(ch);
                                     ^
0_0_21544281_23067.cpp:60:25: error: 'end' does not name a type
                         end;
                         ^
0_0_21544281_23067.cpp:61:31: error: expected constructor, destructor, or type conversion before '(' token
                         readln(x,y);
                               ^
0_0_21544281_23067.cpp:62:25: error: expected unqualified-id before 'if'
                         if ml='Query' then writeln(query(1,1,n));
                         ^
0_0_21544281_23067.cpp:63:25: error: expected unqualified-id before 'if'
                         if ml='Add' then add_sub(1,1,n);
                         ^
0_0_21544281_23067.cpp:64:25: error: expected unqualified-id before 'if'
                         if ml='Sub' then
                         ^
0_0_21544281_23067.cpp:67:40: error: expected constructor, destructor, or type conversion before '(' token
                                 add_sub(1,1,n);
                                        ^
0_0_21544281_23067.cpp:68:25: error: 'end' does not name a type
                         end;
                         ^
0_0_21544281_23067.cpp:69:17: error: 'end' does not name a type
                 end;
                 ^
0_0_21544281_23067.cpp:70:9: error: 'end' does not name a type
         end;
         ^
0_0_21544281_23067.cpp:71: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 23:47:38, Gzip enabled