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_33758853_17416.cpp:1:1: error: 'program' does not name a type
 program pro;
 ^
0_0_33758853_17416.cpp:3:7: error: 'eps' does not name a type
 const eps=1e-9;
       ^
0_0_33758853_17416.cpp:5:1: error: 'var' does not name a type
 var
 ^
0_0_33758853_17416.cpp:9:9: error: 'ans' does not name a type
         ans,k,u,tt,tmp:extended;
         ^
0_0_33758853_17416.cpp:13:1: error: 'procedure' does not name a type
 procedure openf;
 ^
0_0_33758853_17416.cpp:15:1: error: 'begin' does not name a type
 begin
 ^
0_0_33758853_17416.cpp:17:40: error: expected constructor, destructor, or type conversion before '(' token
         assign(input,'house.in'); reset(input);
                                        ^
0_0_33758853_17416.cpp:19:15: error: expected constructor, destructor, or type conversion before '(' token
         assign(output,'house.out'); rewrite(output);
               ^
0_0_33758853_17416.cpp:19:44: error: expected constructor, destructor, or type conversion before '(' token
         assign(output,'house.out'); rewrite(output);
                                            ^
0_0_33758853_17416.cpp:21:1: error: 'end' does not name a type
 end;
 ^
0_0_33758853_17416.cpp:25:1: error: 'procedure' does not name a type
 procedure closef;
 ^
0_0_33758853_17416.cpp:27:1: error: 'begin' does not name a type
 begin
 ^
0_0_33758853_17416.cpp:31:14: error: expected constructor, destructor, or type conversion before '(' token
         close(output);
              ^
0_0_33758853_17416.cpp:33:1: error: 'end' does not name a type
 end;
 ^
0_0_33758853_17416.cpp:37:1: error: 'begin' does not name a type
 begin
 ^
0_0_33758853_17416.cpp:41:15: error: expected constructor, destructor, or type conversion before '(' token
         readln(t);
               ^
0_0_33758853_17416.cpp:43:9: error: expected unqualified-id before 'for'
         for i:=1 to t do
         ^
0_0_33758853_17416.cpp:49:17: error: 'ans' does not name a type
                 ans:=0;
                 ^
0_0_33758853_17416.cpp:51:17: error: expected unqualified-id before 'if'
                 if x>y then
                 ^
0_0_33758853_17416.cpp:57:25: error: expected unqualified-id before 'continue'
                         continue;
                         ^
0_0_33758853_17416.cpp:59:17: error: 'end' does not name a type
                 end;
                 ^
0_0_33758853_17416.cpp:61:17: error: 'k' does not name a type
                 k:=(y+1-eps)/x;
                 ^
0_0_33758853_17416.cpp:63:17: error: 'ans' does not name a type
                 ans:=x-1;
                 ^
0_0_33758853_17416.cpp:67:17: error: 'tmp' does not name a type
                 tmp:=1;
                 ^
0_0_33758853_17416.cpp:69:17: error: expected unqualified-id before 'for'
                 for j:=1 to x do
                 ^
0_0_33758853_17416.cpp:75:25: error: 'u' does not name a type
                         u:=trunc(tt-tmp);
                         ^
0_0_33758853_17416.cpp:77:25: error: 'tmp' does not name a type
                         tmp:=tmp+u;
                         ^
0_0_33758853_17416.cpp:79:25: error: 'tmp' does not name a type
                         tmp:=tmp*(j+1)/j;
                         ^
0_0_33758853_17416.cpp:81:25: error: 'ans' does not name a type
                         ans:=ans+u;
                         ^
0_0_33758853_17416.cpp:83:17: error: 'end' does not name a type
                 end;
                 ^
0_0_33758853_17416.cpp:85:24: error: expected constructor, destructor, or type conversion before '(' token
                 writeln(trunc(ans));
                        ^
0_0_33758853_17416.cpp:87:9: error: 'end' does not name a type
         end;
         ^
0_0_33758853_17416.cpp:89:9: error: 'closef' does not name a type
         closef;
         ^
0_0_33758853_17416.cpp:91: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 22:33:48, Gzip enabled