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_14739248_12226.cpp:1:1: error: 'var' does not name a type
 var
 ^
0_0_14739248_12226.cpp:4:1: error: 'function' does not name a type
 function gcd(a,b:longint):longint;
 ^
0_0_14739248_12226.cpp:5:1: error: 'begin' does not name a type
 begin
 ^
0_0_14739248_12226.cpp:8:1: error: 'end' does not name a type
 end;
 ^
0_0_14739248_12226.cpp:13:1: error: 'begin' does not name a type
 begin
 ^
0_0_14739248_12226.cpp:15:1: error: expected unqualified-id before 'for'
 for y:=1 to t do
 ^
0_0_14739248_12226.cpp:18:1: error: expected unqualified-id before 'if'
 if n=1 then write(1);
 ^
0_0_14739248_12226.cpp:19:1: error: expected unqualified-id before 'if'
 if n>1 then begin
 ^
0_0_14739248_12226.cpp:21:1: error: expected unqualified-id before 'for'
 for i:=2 to (n+1)div 2 do
 ^
0_0_14739248_12226.cpp:23:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(ans*2);
        ^
0_0_14739248_12226.cpp:24:1: error: 'end' does not name a type
 end;
 ^
0_0_14739248_12226.cpp:25:1: error: 'end' does not name a type
 end;
 ^
0_0_14739248_12226.cpp:26: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-27 00:53:02, Gzip enabled