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_35890084_29007.cpp: In function 'void print(node)':
0_0_35890084_29007.cpp:53:5: error: 'string' was not declared in this scope
     string ans;
     ^
0_0_35890084_29007.cpp:58:18: error: 'ans' was not declared in this scope
         case 0 : ans += str[0];break;
                  ^
0_0_35890084_29007.cpp:65:13: error: 'ans' was not declared in this scope
     int len=ans.size() ;
             ^
0_0_35890084_29007.cpp:66:48: error: 'putchar' was not declared in this scope
     for (int i=len-1 ;i>=0 ;i--) putchar(ans[i]);
                                                ^
0_0_35890084_29007.cpp: At global scope:
0_0_35890084_29007.cpp:70:1: error: 'pair' does not name a type
 pair<int,int> pii[10];
 ^
0_0_35890084_29007.cpp: In function 'int getH(node)':
0_0_35890084_29007.cpp:76:9: error: 'pii' was not declared in this scope
         pii[i%9].first=r ;
         ^
0_0_35890084_29007.cpp:87:24: error: 'pii' was not declared in this scope
             sum += abs(pii[u].first-i)+abs(pii[u].second-j);
                        ^
0_0_35890084_29007.cpp:87:38: error: 'abs' was not declared in this scope
             sum += abs(pii[u].first-i)+abs(pii[u].second-j);
                                      ^
0_0_35890084_29007.cpp: In function 'void A_star(node)':
0_0_35890084_29007.cpp:97:5: error: 'priority_queue' was not declared in this scope
     priority_queue<node> Q;
     ^
0_0_35890084_29007.cpp:97:24: error: expected primary-expression before '>' token
     priority_queue<node> Q;
                        ^
0_0_35890084_29007.cpp:97:26: error: 'Q' was not declared in this scope
     priority_queue<node> Q;
                          ^
0_0_35890084_29007.cpp:102:30: error: 'memset' was not declared in this scope
     memset(vis,-1,sizeof(vis));
                              ^
0_0_35890084_29007.cpp:131:59: error: 'swap' was not declared in this scope
             swap(tail.mase[tail.x][tail.y],tail.mase[x][y]);
                                                           ^
0_0_35890084_29007.cpp: In function 'int main()':
0_0_35890084_29007.cpp:156:20: error: 'gets' was not declared in this scope
     while (gets(str))
                    ^
0_0_35890084_29007.cpp:159:27: error: 'strlen' was not declared in this scope
         int len=strlen(str);
                           ^
0_0_35890084_29007.cpp:178:43: error: 'printf' was not declared in this scope
         if (sum==destination) {printf("\n");continue; }
                                           ^
0_0_35890084_29007.cpp:179:52: error: 'printf' was not declared in this scope
         if (is_ok(start)==0) {printf("unsolvable\n");continue; }
                                                    ^
0_0_35890084_29007.cpp:181:20: 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-11-30 23:26:54, Gzip enabled