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_16394302_706.cpp:2:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_16394302_706.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_16394302_706.cpp:4:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_16394302_706.cpp:5:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_16394302_706.cpp:6:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_16394302_706.cpp:7:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_16394302_706.cpp:8:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_16394302_706.cpp:9:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_16394302_706.cpp:10:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_16394302_706.cpp:17:1: error: expected ']' before 'int'
 int p[maxn][2],n,m;
 ^
0_0_16394302_706.cpp: In function 'int cal(int, int)':
0_0_16394302_706.cpp:20:16: error: 'p' was not declared in this scope
     return abs(p[i][0]-p[j][0])+abs(p[i][1]-p[j][1]);
                ^
0_0_16394302_706.cpp:20:31: error: 'abs' was not declared in this scope
     return abs(p[i][0]-p[j][0])+abs(p[i][1]-p[j][1]);
                               ^
0_0_16394302_706.cpp: In function 'int main()':
0_0_16394302_706.cpp:25:26: error: 'n' was not declared in this scope
     while(~scanf("%d%d",&n,&m))
                          ^
0_0_16394302_706.cpp:25:29: error: 'm' was not declared in this scope
     while(~scanf("%d%d",&n,&m))
                             ^
0_0_16394302_706.cpp:25:30: error: 'scanf' was not declared in this scope
     while(~scanf("%d%d",&n,&m))
                              ^
0_0_16394302_706.cpp:28:9: error: 'base' was not declared in this scope
         base[1]=1;
         ^
0_0_16394302_706.cpp:30:9: error: expected ';' before 'base'
         base[i]=base[i-1]
         ^
0_0_16394302_706.cpp:31:9: error: expected ')' before 'for'
         for(int i=1;i
         ^
0_0_16394302_706.cpp:32:9: error: expected ';' before 'for'
         for(int j=1;j
         ^
0_0_16394302_706.cpp:32:9: error: expected primary-expression before 'for'
0_0_16394302_706.cpp:32:9: error: expected ')' before 'for'
0_0_16394302_706.cpp:33:9: error: expected ';' before '{' token
         {
         ^
0_0_16394302_706.cpp:33:9: error: expected primary-expression before '{' token
0_0_16394302_706.cpp:33:9: error: expected ')' before '{' token
0_0_16394302_706.cpp:37:17: error: 'p' was not declared in this scope
                 p[++cnt][0]=i;
                 ^
0_0_16394302_706.cpp:41:16: error: 'dis' was not declared in this scope
         memset(dis,0,sizeof(dis));
                ^
0_0_16394302_706.cpp:43:9: error: expected ';' before 'for'
         for(int j=i+1;j
         ^
0_0_16394302_706.cpp:43:9: error: expected primary-expression before 'for'
0_0_16394302_706.cpp:43:9: error: expected ')' before 'for'
0_0_16394302_706.cpp:44:9: error: expected ';' before 'dis'
         dis[i][j]=dis[j][i]=cal(i,j);
         ^
0_0_16394302_706.cpp:44:37: error: expected ')' before ';' token
         dis[i][j]=dis[j][i]=cal(i,j);
                                     ^
0_0_16394302_706.cpp:45:16: error: 'dp' was not declared in this scope
         memset(dp,INF,sizeof(dp));
                ^
0_0_16394302_706.cpp:48:9: error: expected ',' or ';' before 'for'
         for(int i=0;i
         ^
0_0_16394302_706.cpp:48:21: error: 'i' was not declared in this scope
         for(int i=0;i
                     ^
0_0_16394302_706.cpp:49:21: error: 'j' was not declared in this scope
         for(int j=1;j
                     ^
0_0_16394302_706.cpp:58:35: error: 'printf' was not declared in this scope
         printf("%d\n",dp[1][lim-1]);
                                   ^


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-26 09:16:36, Gzip enabled