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_18270626_5814.cpp:2:11: error: too many decimal points in number
   a:array[0..10000] of longint;
           ^
0_0_18270626_5814.cpp:3:11: error: too many decimal points in number
   b:array[0..10000] of boolean;
           ^
0_0_18270626_5814.cpp:1:1: error: 'var' does not name a type
 var
 ^
0_0_18270626_5814.cpp:3:4: error: found ':' in nested-name-specifier, expected '::'
   b:array[0..10000] of boolean;
    ^
0_0_18270626_5814.cpp:3:3: error: 'b' does not name a type
   b:array[0..10000] of boolean;
   ^
0_0_18270626_5814.cpp:4:4: error: found ':' in nested-name-specifier, expected '::'
   n:longint;
    ^
0_0_18270626_5814.cpp:4:3: error: 'n' does not name a type
   n:longint;
   ^
0_0_18270626_5814.cpp:6:1: error: 'function' does not name a type
 function dfs(m:longint):longint;
 ^
0_0_18270626_5814.cpp:7:3: error: 'var' does not name a type
   var i,j,x,y:longint;
   ^
0_0_18270626_5814.cpp:8:8: error: found ':' in nested-name-specifier, expected '::'
       f:boolean;
        ^
0_0_18270626_5814.cpp:8:7: error: 'f' does not name a type
       f:boolean;
       ^
0_0_18270626_5814.cpp:9:1: error: 'begin' does not name a type
 begin
 ^
0_0_18270626_5814.cpp:13:22: error: 'y' does not name a type
         x:=a[1]+a[n];y:=2;f:=true;
                      ^
0_0_18270626_5814.cpp:13:27: error: 'f' does not name a type
         x:=a[1]+a[n];y:=2;f:=true;
                           ^
0_0_18270626_5814.cpp:14:9: error: expected unqualified-id before 'while'
         while (y<=trunc(sqrt(x))) and f do
         ^
0_0_18270626_5814.cpp:17:9: error: expected unqualified-id before 'if'
         if x=2 then f:=true;
         ^
0_0_18270626_5814.cpp:18:9: error: expected unqualified-id before 'if'
         if f then
         ^
0_0_18270626_5814.cpp:21:13: error: 'writeln' does not name a type
             writeln;
             ^
0_0_18270626_5814.cpp:22:11: error: 'end' does not name a type
           end;
           ^
0_0_18270626_5814.cpp:23:7: error: 'end' does not name a type
       end
       ^
0_0_18270626_5814.cpp:35:23: error: 'b' does not name a type
                       b[i]:=true;
                       ^
0_0_18270626_5814.cpp:36:26: error: expected constructor, destructor, or type conversion before '(' token
                       dfs(m+1);
                          ^
0_0_18270626_5814.cpp:37:23: error: 'b' does not name a type
                       b[i]:=false;
                       ^
0_0_18270626_5814.cpp:38:23: error: expected unqualified-id before 'break'
                       break;
                       ^
0_0_18270626_5814.cpp:39:21: error: 'end' does not name a type
                     end
                     ^
0_0_18270626_5814.cpp:43:21: error: 'x' does not name a type
                     x:=a[m]+a[m-1];y:=2;f:=true;
                     ^
0_0_18270626_5814.cpp:43:36: error: 'y' does not name a type
                     x:=a[m]+a[m-1];y:=2;f:=true;
                                    ^
0_0_18270626_5814.cpp:43:41: error: 'f' does not name a type
                     x:=a[m]+a[m-1];y:=2;f:=true;
                                         ^
0_0_18270626_5814.cpp:44:21: error: expected unqualified-id before 'while'
                     while (y<=trunc(sqrt(x))) and f do
                     ^
0_0_18270626_5814.cpp:47:21: error: expected unqualified-id before 'if'
                     if x=2 then f:=true;
                     ^
0_0_18270626_5814.cpp:48:21: error: expected unqualified-id before 'if'
                     if not f then continue;
                     ^
0_0_18270626_5814.cpp:49:21: error: 'b' does not name a type
                     b[i]:=true;
                     ^
0_0_18270626_5814.cpp:50:24: error: expected constructor, destructor, or type conversion before '(' token
                     dfs(m+1);
                        ^
0_0_18270626_5814.cpp:51:21: error: 'b' does not name a type
                     b[i]:=false;
                     ^
0_0_18270626_5814.cpp:52:19: error: 'end' does not name a type
                   end;
                   ^
0_0_18270626_5814.cpp:53:15: error: 'end' does not name a type
               end;
               ^
0_0_18270626_5814.cpp:54:9: error: 'end' does not name a type
         end;
         ^
0_0_18270626_5814.cpp:55:5: error: 'end' does not name a type
     end;
     ^
0_0_18270626_5814.cpp:56:1: error: 'end' does not name a type
 end;
 ^
0_0_18270626_5814.cpp:58:1: error: 'begin' does not name a type
 begin
 ^
0_0_18270626_5814.cpp:62:15: error: expected constructor, destructor, or type conversion before '(' token
       fillchar(a,sizeof(a),0);
               ^
0_0_18270626_5814.cpp:63:10: error: expected constructor, destructor, or type conversion before '(' token
       dfs(1);
          ^
0_0_18270626_5814.cpp:64:5: error: 'end' does not name a type
     end; 
     ^
0_0_18270626_5814.cpp:65: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-09-28 04:16:33, Gzip enabled