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_19128781_11146.cpp:1:1: error: 'var' does not name a type
 var t,k,i,n,m:longint;
 ^
0_0_19128781_11146.cpp:2:5: error: 'sum' does not name a type
     sum,x:int64;
     ^
0_0_19128781_11146.cpp:3:1: error: 'begin' does not name a type
 begin
 ^
0_0_19128781_11146.cpp:5:3: error: expected unqualified-id before 'for'
   for k:=1 to t do
   ^
0_0_19128781_11146.cpp:8:9: error: expected constructor, destructor, or type conversion before '(' token
     read(n,m);
         ^
0_0_19128781_11146.cpp:9:5: error: expected unqualified-id before 'for'
     for i:=1 to n do
     ^
0_0_19128781_11146.cpp:12:7: error: 'sum' does not name a type
       sum:=sum+x;
       ^
0_0_19128781_11146.cpp:13:5: error: 'end' does not name a type
     end;
     ^
0_0_19128781_11146.cpp:14:5: error: expected unqualified-id before 'for'
     for i:=1 to m do
     ^
0_0_19128781_11146.cpp:17:7: error: expected unqualified-id before 'if'
       if sum>x then write('0') else write('1');
       ^
0_0_19128781_11146.cpp:18:5: error: 'end' does not name a type
     end;
     ^
0_0_19128781_11146.cpp:19:3: error: 'end' does not name a type
   end;
   ^
0_0_19128781_11146.cpp:20: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-29 11:12:17, Gzip enabled