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_25869809_12535.cpp: In function 'int len(char*)':
0_0_25869809_12535.cpp:28:46: error: 'abs' was not declared in this scope
                 ans+=abs(i/3-(str[i]-'0'-1)/3)+abs(i%3-((str[i]-'0')-1)%3);  
                                              ^
0_0_25869809_12535.cpp: In function 'int dfs(int, int, int)':
0_0_25869809_12535.cpp:46:18: error: 'INF' was not declared in this scope
         int tmp1=INF,tmp2;  
                  ^
0_0_25869809_12535.cpp:50:13: error: 'tmp2' was not declared in this scope
             tmp2=dfs(now+1,num+1,4);  
             ^
0_0_25869809_12535.cpp:52:31: error: 'min' was not declared in this scope
             tmp1=min(tmp1,tmp2);  
                               ^
0_0_25869809_12535.cpp:58:13: error: 'tmp2' was not declared in this scope
             tmp2=dfs(now-1,num+1,3);  
             ^
0_0_25869809_12535.cpp:60:31: error: 'min' was not declared in this scope
             tmp1=min(tmp1,tmp2);  
                               ^
0_0_25869809_12535.cpp:66:13: error: 'tmp2' was not declared in this scope
             tmp2=dfs(now+3,num+1,2);  
             ^
0_0_25869809_12535.cpp:68:31: error: 'min' was not declared in this scope
             tmp1=min(tmp1,tmp2);  
                               ^
0_0_25869809_12535.cpp:74:13: error: 'tmp2' was not declared in this scope
             tmp2=dfs(now-3,num+1,1);  
             ^
0_0_25869809_12535.cpp:76:31: error: 'min' was not declared in this scope
             tmp1=min(tmp1,tmp2);  
                               ^
0_0_25869809_12535.cpp: In function 'int main()':
0_0_25869809_12535.cpp:90:27: error: 'scanf' was not declared in this scope
         while(scanf("%s",s)!=EOF)  
                           ^
0_0_25869809_12535.cpp:90:30: error: 'EOF' was not declared in this scope
         while(scanf("%s",s)!=EOF)  
                              ^
0_0_25869809_12535.cpp:100:38: error: 'printf' was not declared in this scope
                 printf("unsolvable\n");  
                                      ^
0_0_25869809_12535.cpp:106:40: error: 'printf' was not declared in this scope
                 if(res[i]==1)printf("u");  
                                        ^
0_0_25869809_12535.cpp:107:40: error: 'printf' was not declared in this scope
                 if(res[i]==2)printf("d");  
                                        ^
0_0_25869809_12535.cpp:108:40: error: 'printf' was not declared in this scope
                 if(res[i]==3)printf("l");  
                                        ^
0_0_25869809_12535.cpp:109:40: error: 'printf' was not declared in this scope
                 if(res[i]==4)printf("r");  
                                        ^
0_0_25869809_12535.cpp:111:24: error: 'printf' was not declared in this scope
             printf("\n");  
                        ^


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-30 00:24:47, Gzip enabled