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_13150335_29441.cpp:4:15: error: too many decimal points in number
     a,c:array[1..50000]of longint;
               ^
0_0_13150335_29441.cpp:1:1: error: 'program' does not name a type
 program p1166;
 ^
0_0_13150335_29441.cpp:2:1: error: 'var' does not name a type
 var t,n,m,i,j,k,x,y:longint;
 ^
0_0_13150335_29441.cpp:3:5: error: 's1' does not name a type
     s1,s2:char;
     ^
0_0_13150335_29441.cpp:4:5: error: 'a' does not name a type
     a,c:array[1..50000]of longint;
     ^
0_0_13150335_29441.cpp:5:1: error: 'function' does not name a type
 function lowbit(x:longint):longint;
 ^
0_0_13150335_29441.cpp:6:7: error: 'begin' does not name a type
       begin
       ^
0_0_13150335_29441.cpp:8:7: error: 'end' does not name a type
       end;
       ^
0_0_13150335_29441.cpp:9:1: error: 'procedure' does not name a type
 procedure add(i,x:longint);
 ^
0_0_13150335_29441.cpp:10:3: error: 'begin' does not name a type
   begin
   ^
0_0_13150335_29441.cpp:14:9: error: 'i' does not name a type
         i:=i+lowbit(i);
         ^
0_0_13150335_29441.cpp:15:7: error: 'end' does not name a type
       end;
       ^
0_0_13150335_29441.cpp:16:3: error: 'end' does not name a type
   end;
   ^
0_0_13150335_29441.cpp:17:1: error: 'procedure' does not name a type
 procedure sub(i,x:longint);
 ^
0_0_13150335_29441.cpp:18:3: error: 'begin' does not name a type
   begin
   ^
0_0_13150335_29441.cpp:22:9: error: 'i' does not name a type
         i:=i+lowbit(i);
         ^
0_0_13150335_29441.cpp:23:7: error: 'end' does not name a type
       end;
       ^
0_0_13150335_29441.cpp:24:3: error: 'end' does not name a type
   end;
   ^
0_0_13150335_29441.cpp:25:1: error: 'function' does not name a type
 function find(x:longint):longint;
 ^
0_0_13150335_29441.cpp:26:1: error: 'var' does not name a type
 var s:longint;
 ^
0_0_13150335_29441.cpp:27:5: error: 'begin' does not name a type
     begin s:=0;
     ^
0_0_13150335_29441.cpp:28:7: error: expected unqualified-id before 'while'
       while x>0 do
       ^
0_0_13150335_29441.cpp:31:11: error: 'x' does not name a type
           x:=x-lowbit(x);
           ^
0_0_13150335_29441.cpp:32:9: error: 'end' does not name a type
         end;
         ^
0_0_13150335_29441.cpp:33:7: error: 'find' does not name a type
       find:=s;
       ^
0_0_13150335_29441.cpp:34:5: error: 'end' does not name a type
     end;
     ^
0_0_13150335_29441.cpp:35:1: error: 'begin' does not name a type
 begin
 ^
0_0_13150335_29441.cpp:37:3: error: expected unqualified-id before 'for'
   for k:=1 to t do
   ^
0_0_13150335_29441.cpp:39:19: error: expected constructor, destructor, or type conversion before '(' token
           fillchar(a,sizeof(a),0);
                   ^
0_0_13150335_29441.cpp:40:19: error: expected constructor, destructor, or type conversion before '(' token
           fillchar(c,sizeof(c),0);
                   ^
0_0_13150335_29441.cpp:41:13: error: expected constructor, destructor, or type conversion before '(' token
       readln(n);
             ^
0_0_13150335_29441.cpp:42:7: error: expected unqualified-id before 'for'
       for i:=1 to n do
       ^
0_0_13150335_29441.cpp:45:12: error: expected constructor, destructor, or type conversion before '(' token
         add(i,a[i]);
            ^
0_0_13150335_29441.cpp:46:9: error: 'end' does not name a type
         end;
         ^
0_0_13150335_29441.cpp:47:8: error: 'readln' does not name a type
        readln;
        ^
0_0_13150335_29441.cpp:48:12: error: expected constructor, destructor, or type conversion before '(' token
        read(s1);
            ^
0_0_13150335_29441.cpp:49:8: error: expected unqualified-id before 'while'
        while s1<>'E' do
        ^
0_0_13150335_29441.cpp:53:24: error: expected constructor, destructor, or type conversion before '(' token
                  readln(x,y);
                        ^
0_0_13150335_29441.cpp:54:25: error: expected constructor, destructor, or type conversion before '(' token
                  writeln(find(y)-find(x-1));
                         ^
0_0_13150335_29441.cpp:55:16: error: 'end' does not name a type
                end;
                ^
0_0_13150335_29441.cpp:56:12: error: expected unqualified-id before 'A'
            'A':begin  for i:=1 to 2 do read(s2);
            ^
0_0_13150335_29441.cpp:57:25: error: expected constructor, destructor, or type conversion before '(' token
                   readln(x,y);
                         ^
0_0_13150335_29441.cpp:58:22: error: expected constructor, destructor, or type conversion before '(' token
                   add(x,y);
                      ^
0_0_13150335_29441.cpp:59:16: error: 'end' does not name a type
                end;
                ^
0_0_13150335_29441.cpp:60:12: error: expected unqualified-id before 'S'
            'S':begin  for i:=1 to 2 do read(s2);
            ^
0_0_13150335_29441.cpp:61:24: error: expected constructor, destructor, or type conversion before '(' token
                  readln(x,y);
                        ^
0_0_13150335_29441.cpp:62:21: error: expected constructor, destructor, or type conversion before '(' token
                  sub(x,y);
                     ^
0_0_13150335_29441.cpp:63:16: error: 'end' does not name a type
                end;
                ^
0_0_13150335_29441.cpp:64:12: error: 'end' does not name a type
            end;
            ^
0_0_13150335_29441.cpp:65:14: error: expected constructor, destructor, or type conversion before '(' token
          read(s1);
              ^
0_0_13150335_29441.cpp:66:10: error: 'end' does not name a type
          end;readln;
          ^
0_0_13150335_29441.cpp:66:14: error: 'readln' does not name a type
          end;readln;
              ^
0_0_13150335_29441.cpp:67:5: error: 'end' does not name a type
     end;
     ^
0_0_13150335_29441.cpp:68: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-16 16:31:52, Gzip enabled