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_15131876_22117.cpp:1:1: error: 'program' does not name a type
 program hdu2007;
 ^
0_0_15131876_22117.cpp:2:1: error: 'var' does not name a type
 var
 ^
0_0_15131876_22117.cpp:4:1: error: 'begin' does not name a type
 begin
 ^
0_0_15131876_22117.cpp:8:5: error: 'x' does not name a type
     x:=0;
     ^
0_0_15131876_22117.cpp:9:5: error: 'y' does not name a type
     y:=0;
     ^
0_0_15131876_22117.cpp:10:5: error: expected unqualified-id before 'if'
     if(m>n)then
     ^
0_0_15131876_22117.cpp:13:5: error: 'm' does not name a type
     m:=n;
     ^
0_0_15131876_22117.cpp:14:5: error: 'n' does not name a type
     n:=z;
     ^
0_0_15131876_22117.cpp:15:5: error: 'end' does not name a type
     end;
     ^
0_0_15131876_22117.cpp:16:5: error: expected unqualified-id before 'while'
     while(n>=m)do
     ^
0_0_15131876_22117.cpp:21:7: error: 'n' does not name a type
       n:=n-1;
       ^
0_0_15131876_22117.cpp:22:5: error: 'end' does not name a type
     end;
     ^
0_0_15131876_22117.cpp:23:12: error: expected constructor, destructor, or type conversion before '(' token
     writeln(x,' ',y);
            ^
0_0_15131876_22117.cpp:24:3: error: 'end' does not name a type
   end;
   ^
0_0_15131876_22117.cpp:25:1: error: 'end' does not name a type
 end.
 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 18:37:37, Gzip enabled