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_15029124_19558.cpp:2:13: error: too many decimal points in number
 var w:array[0..110] of longint;
             ^
0_0_15029124_19558.cpp:4:15: error: too many decimal points in number
     p,f:array[0..110] of real;
               ^
0_0_15029124_19558.cpp:1:1: error: 'program' does not name a type
 program bs2955;
 ^
0_0_15029124_19558.cpp:2:1: error: 'var' does not name a type
 var w:array[0..110] of longint;
 ^
0_0_15029124_19558.cpp:3:9: error: found ':' in nested-name-specifier, expected '::'
     pmax:real;
         ^
0_0_15029124_19558.cpp:3:5: error: 'pmax' does not name a type
     pmax:real;
     ^
0_0_15029124_19558.cpp:4:5: error: 'p' does not name a type
     p,f:array[0..110] of real;
     ^
0_0_15029124_19558.cpp:5:5: error: 'sum' does not name a type
     sum,n,l,i,j,t:longint;
     ^
0_0_15029124_19558.cpp:6:1: error: 'function' does not name a type
 function max(a,b:real):real;
 ^
0_0_15029124_19558.cpp:7:1: error: 'begin' does not name a type
 begin
 ^
0_0_15029124_19558.cpp:9:7: error: expected constructor, destructor, or type conversion before '(' token
   exit(b);
       ^
0_0_15029124_19558.cpp:10:1: error: 'end' does not name a type
 end;
 ^
0_0_15029124_19558.cpp:11:1: error: 'begin' does not name a type
 begin
 ^
0_0_15029124_19558.cpp:13:3: error: expected unqualified-id before 'for'
   for l:=1 to t do
   ^
0_0_15029124_19558.cpp:16:11: error: expected constructor, destructor, or type conversion before '(' token
     readln(pmax,n);
           ^
0_0_15029124_19558.cpp:17:5: error: 'pmax' does not name a type
     pmax:=1-pmax;
     ^
0_0_15029124_19558.cpp:18:5: error: 'sum' does not name a type
     sum:=0;
     ^
0_0_15029124_19558.cpp:19:5: error: expected unqualified-id before 'for'
     for i:=1 to n do
     ^
0_0_15029124_19558.cpp:22:7: error: 'p' does not name a type
       p[i]:=1-p[i];
       ^
0_0_15029124_19558.cpp:23:7: error: 'sum' does not name a type
       sum:=sum+w[i];
       ^
0_0_15029124_19558.cpp:24:7: error: 'end' does not name a type
       end;
       ^
0_0_15029124_19558.cpp:25:5: error: 'f' does not name a type
     f[0]:=1;
     ^
0_0_15029124_19558.cpp:26:5: error: expected unqualified-id before 'for'
     for i:=0 to n do
     ^
0_0_15029124_19558.cpp:29:5: error: expected unqualified-id before 'for'
     for i:=sum downto 0 do
     ^
0_0_15029124_19558.cpp:33:9: error: expected unqualified-id before 'break'
         break;
         ^
0_0_15029124_19558.cpp:34:9: error: 'end' does not name a type
         end;
         ^
0_0_15029124_19558.cpp:35:5: error: 'end' does not name a type
     end;
     ^
0_0_15029124_19558.cpp:36: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 07:24:28, Gzip enabled