0_0_32972370_1460.cpp: In function 'void bfs(int)':
0_0_32972370_1460.cpp:66:5: error: 'queue' was not declared in this scope
queue<P> q;
^
0_0_32972370_1460.cpp:66:12: error: expected primary-expression before '>' token
queue<P> q;
^
0_0_32972370_1460.cpp:66:14: error: 'q' was not declared in this scope
queue<P> q;
^
0_0_32972370_1460.cpp:84:40: error: 'swap' was not declared in this scope
swap(np.a[np.x], np.a[tp.x]);
^
0_0_32972370_1460.cpp: In function 'int main()':
0_0_32972370_1460.cpp:97:32: error: 'memset' was not declared in this scope
memset(vis, -1, sizeof(vis));
^
0_0_32972370_1460.cpp:102:19: error: 'scanf' was not declared in this scope
scanf("%d", &T);
^
0_0_32972370_1460.cpp:124:9: error: 'string' was not declared in this scope
string path = "";
^
0_0_32972370_1460.cpp:126:13: error: 'path' was not declared in this scope
path += dir[vis[k][h]];
^
0_0_32972370_1460.cpp:129:37: error: 'path' was not declared in this scope
printf("Case %d: %d\n", cs, path.length()-1);
^
0_0_32972370_1460.cpp:129:52: error: 'printf' was not declared in this scope
printf("Case %d: %d\n", cs, path.length()-1);
^
|