0_0_32986550_23859.cpp:3:1: error: 'include' does not name a type
include<bits/stdc++.h>
^
0_0_32986550_23859.cpp:17:1: error: 'string' does not name a type
string s[maxx];
^
0_0_32986550_23859.cpp: In function 'int bfs()':
0_0_32986550_23859.cpp:22:2: error: 'queue' was not declared in this scope
queue<node> q;
^
0_0_32986550_23859.cpp:22:12: error: expected primary-expression before '>' token
queue<node> q;
^
0_0_32986550_23859.cpp:22:14: error: 'q' was not declared in this scope
queue<node> q;
^
0_0_32986550_23859.cpp:32:7: error: 's' was not declared in this scope
if(s[i][u.x]==s[u.y][u.z]&&vis[i][u.y][u.z]==0)
^
0_0_32986550_23859.cpp:37:7: error: 's' was not declared in this scope
if(s[i][u.y]==s[u.x][u.z]&&vis[u.x][i][u.z]==0)
^
0_0_32986550_23859.cpp:42:7: error: 's' was not declared in this scope
if(s[i][u.z]==s[u.x][u.y]&&vis[u.x][u.y][i]==0)
^
0_0_32986550_23859.cpp: In function 'int main()':
0_0_32986550_23859.cpp:53:21: error: 'scanf' was not declared in this scope
while(scanf("%d",&n),n)
^
0_0_32986550_23859.cpp:59:4: error: 's' was not declared in this scope
s[i]="";
^
0_0_32986550_23859.cpp:60:26: error: 'cin' was not declared in this scope
for(int j=1;j<=n;j++) cin>>c,s[i]=s[i]+c;
^
0_0_32986550_23859.cpp:63:27: error: 'memset' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_32986550_23859.cpp:65:15: error: 'cout' was not declared in this scope
if(ans==-1) cout<<"impossible"<<endl;
^
0_0_32986550_23859.cpp:65:35: error: 'endl' was not declared in this scope
if(ans==-1) cout<<"impossible"<<endl;
^
0_0_32986550_23859.cpp:66:8: error: 'cout' was not declared in this scope
else cout<<ans<<endl;
^
0_0_32986550_23859.cpp:66:19: error: 'endl' was not declared in this scope
else cout<<ans<<endl;
^
|