0_0_35856274_16848.cpp: In function 'void bfs()':
0_0_35856274_16848.cpp:5:5: error: 'queue' was not declared in this scope
queue<node>q;
^
0_0_35856274_16848.cpp:5:11: error: 'node' was not declared in this scope
queue<node>q;
^
0_0_35856274_16848.cpp:5:16: error: 'q' was not declared in this scope
queue<node>q;
^
0_0_35856274_16848.cpp:7:12: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_35856274_16848.cpp:7:29: error: 'memset' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_35856274_16848.cpp:8:10: error: expected ';' before 'head'
node head,nxt;
^
0_0_35856274_16848.cpp:9:5: error: 'head' was not declared in this scope
head.a=a;head.b=b;head.c=c;head.step=0;
^
0_0_35856274_16848.cpp:9:12: error: 'a' was not declared in this scope
head.a=a;head.b=b;head.c=c;head.step=0;
^
0_0_35856274_16848.cpp:9:21: error: 'b' was not declared in this scope
head.a=a;head.b=b;head.c=c;head.step=0;
^
0_0_35856274_16848.cpp:9:30: error: 'c' was not declared in this scope
head.a=a;head.b=b;head.c=c;head.step=0;
^
0_0_35856274_16848.cpp:18:36: error: 'printf' was not declared in this scope
printf("%d\n",head.step);
^
0_0_35856274_16848.cpp:21:24: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)
^
0_0_35856274_16848.cpp:23:13: error: 'nxt' was not declared in this scope
nxt=head;
^
0_0_35856274_16848.cpp:24:16: error: 'color' was not declared in this scope
if(color[nxt.a][i]==color[nxt.b][nxt.c])
^
0_0_35856274_16848.cpp:35:24: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)
^
0_0_35856274_16848.cpp:37:13: error: 'nxt' was not declared in this scope
nxt=head;
^
0_0_35856274_16848.cpp:38:16: error: 'color' was not declared in this scope
if(color[nxt.b][i]==color[nxt.a][nxt.c])
^
0_0_35856274_16848.cpp:49:24: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)
^
0_0_35856274_16848.cpp:51:13: error: 'nxt' was not declared in this scope
nxt=head;
^
0_0_35856274_16848.cpp:52:16: error: 'color' was not declared in this scope
if(color[nxt.c][i]==color[nxt.a][nxt.b])
^
0_0_35856274_16848.cpp:64:26: error: 'printf' was not declared in this scope
printf("impossible\n");
^
|