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