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_15910159_13622.cpp:3:13: error: too many decimal points in number
     a:array[1..1000] of longint;
             ^
0_0_15910159_13622.cpp:1:1: error: 'program' does not name a type
 program wjy;
 ^
0_0_15910159_13622.cpp:2:1: error: 'var' does not name a type
 var i,j,l,t,k:longint;
 ^
0_0_15910159_13622.cpp:3:6: error: found ':' in nested-name-specifier, expected '::'
     a:array[1..1000] of longint;
      ^
0_0_15910159_13622.cpp:3:5: error: 'a' does not name a type
     a:array[1..1000] of longint;
     ^
0_0_15910159_13622.cpp:4:5: error: 's' does not name a type
     s,ss:string;
     ^
0_0_15910159_13622.cpp:5:1: error: 'begin' does not name a type
 begin
 ^
0_0_15910159_13622.cpp:7:1: error: expected unqualified-id before 'if'
 if s[1]<>'5' then s:='5'+s;
 ^
0_0_15910159_13622.cpp:8:1: error: expected unqualified-id before 'if'
 if s[length(s)]<>'5' then s:=s+'5';
 ^
0_0_15910159_13622.cpp:10:1: error: 'l' does not name a type
 l:=length(s);
 ^
0_0_15910159_13622.cpp:11:1: error: expected unqualified-id before 'for'
 for i:=1 to l-1 do
 ^
0_0_15910159_13622.cpp:17:4: error: 'k' does not name a type
    k:=k+1;
    ^
0_0_15910159_13622.cpp:18:7: error: expected constructor, destructor, or type conversion before '(' token
    val(ss,a[k]);
       ^
0_0_15910159_13622.cpp:19:4: error: expected unqualified-id before 'break'
    break;
    ^
0_0_15910159_13622.cpp:20:3: error: 'end' does not name a type
   end;
   ^
0_0_15910159_13622.cpp:21:1: error: expected unqualified-id before 'for'
 for i:=1 to k-1 do
 ^
0_0_15910159_13622.cpp:23:35: error: 'a' does not name a type
   if a[i]>a[j] then begin t:=a[i];a[i]:=a[j];a[j]:=t;end;
                                   ^
0_0_15910159_13622.cpp:23:46: error: 'a' does not name a type
   if a[i]>a[j] then begin t:=a[i];a[i]:=a[j];a[j]:=t;end;
                                              ^
0_0_15910159_13622.cpp:23:54: error: 'end' does not name a type
   if a[i]>a[j] then begin t:=a[i];a[i]:=a[j];a[j]:=t;end;
                                                      ^
0_0_15910159_13622.cpp:24:1: error: expected unqualified-id before 'for'
 for i:=1 to k do write(a[i],' ');
 ^
0_0_15910159_13622.cpp:25: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-07-01 19:02:19, Gzip enabled