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_15310811_30856.cpp:1:13: error: too many decimal points in number
 var f:array[0..13,0..12,1..3] of longint;
             ^
0_0_15310811_30856.cpp:1:19: error: too many decimal points in number
 var f:array[0..13,0..12,1..3] of longint;
                   ^
0_0_15310811_30856.cpp:1:25: error: too many decimal points in number
 var f:array[0..13,0..12,1..3] of longint;
                         ^
0_0_15310811_30856.cpp:2:15: error: too many decimal points in number
     map:array[0..14] of longint;
               ^
0_0_15310811_30856.cpp:1:1: error: 'var' does not name a type
 var f:array[0..13,0..12,1..3] of longint;
 ^
0_0_15310811_30856.cpp:2:8: error: found ':' in nested-name-specifier, expected '::'
     map:array[0..14] of longint;
        ^
0_0_15310811_30856.cpp:2:5: error: 'map' does not name a type
     map:array[0..14] of longint;
     ^
0_0_15310811_30856.cpp:3:5: error: 'i' does not name a type
     i,j,t,k,now:longint;
     ^
0_0_15310811_30856.cpp:4:6: error: found ':' in nested-name-specifier, expected '::'
     s:string;
      ^
0_0_15310811_30856.cpp:4:5: error: 's' does not name a type
     s:string;
     ^
0_0_15310811_30856.cpp:6:1: error: 'function' does not name a type
 function num(c:char):longint;
 ^
0_0_15310811_30856.cpp:7:1: error: 'begin' does not name a type
 begin
 ^
0_0_15310811_30856.cpp:9:1: error: 'end' does not name a type
 end;
 ^
0_0_15310811_30856.cpp:11:1: error: 'function' does not name a type
 function dfs(s:string;now,pos,temp:longint):longint;
 ^
0_0_15310811_30856.cpp:11:23: error: 'now' does not name a type
 function dfs(s:string;now,pos,temp:longint):longint;
                       ^
0_0_15310811_30856.cpp:12:1: error: 'var' does not name a type
 var i,t:longint;
 ^
0_0_15310811_30856.cpp:13:1: error: 'begin' does not name a type
 begin
 ^
0_0_15310811_30856.cpp:15:3: error: expected unqualified-id before 'for'
   for i:=0 to num(s[now])-1 do
   ^
0_0_15310811_30856.cpp:18:5: error: 't' does not name a type
     t:=(temp*map[pos+1]+i*map[pos]) mod 13;
     ^
0_0_15310811_30856.cpp:19:5: error: 't' does not name a type
     t:=(13-t) mod 13;
     ^
0_0_15310811_30856.cpp:20:5: error: expected unqualified-id before 'if'
     if i<>1 then inc(dfs,f[pos-1,t,1]+f[pos-1,t,2])
     ^
0_0_15310811_30856.cpp:22:3: error: 'end' does not name a type
   end;
   ^
0_0_15310811_30856.cpp:23:3: error: expected unqualified-id before 'if'
   if (pos=1) or ((now>=2) and (s[now]='3') and (s[now-1]='1')) then exit;
   ^
0_0_15310811_30856.cpp:24:3: error: 'dfs' does not name a type
   dfs:=dfs+dfs(s,now+1,pos-1,(temp*10+num(s[now])) mod 13);
   ^
0_0_15310811_30856.cpp:25:1: error: 'end' does not name a type
 end;
 ^
0_0_15310811_30856.cpp:27:1: error: 'begin' does not name a type
 begin
 ^
0_0_15310811_30856.cpp:29:3: error: 'f' does not name a type
   f[0,0,1]:=1;
   ^
0_0_15310811_30856.cpp:30:3: error: 'map' does not name a type
   map[1]:=1;
   ^
0_0_15310811_30856.cpp:31:3: error: expected unqualified-id before 'for'
   for i:=2 to 10 do map[i]:=10*map[i-1] mod 13;
   ^
0_0_15310811_30856.cpp:32:3: error: expected unqualified-id before 'for'
   for i:=0 to 9 do
   ^
0_0_15310811_30856.cpp:37:9: error: expected unqualified-id before 'if'
         if t<>3 then
         ^
0_0_15310811_30856.cpp:42:16: error: expected constructor, destructor, or type conversion before '(' token
             inc(f[i+1,now,3],f[i,j,2]);
                ^
0_0_15310811_30856.cpp:43:11: error: 'end' does not name a type
           end
           ^
0_0_15310811_30856.cpp:46:12: error: expected constructor, destructor, or type conversion before '(' token
         inc(f[i+1,now,3],f[i,j,3]);
            ^
0_0_15310811_30856.cpp:47:7: error: 'end' does not name a type
       end;
       ^
0_0_15310811_30856.cpp:48:3: error: expected unqualified-id before 'while'
   while not eof do
   ^
0_0_15310811_30856.cpp:52:8: error: expected constructor, destructor, or type conversion before '(' token
     str(k+1,s);
        ^
0_0_15310811_30856.cpp:53:5: error: expected unqualified-id before 'if'
     if k<>0 then
     ^
0_0_15310811_30856.cpp:56:3: error: 'end' does not name a type
   end;
   ^
0_0_15310811_30856.cpp:57: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-24 22:33:48, Gzip enabled