0_0_22838952_17748.cpp:29:1: error: 'pair' does not name a type
pair<Node, bool> next(Node& now, int diri, int dirj) {
^
0_0_22838952_17748.cpp: In function 'void bfs(Node)':
0_0_22838952_17748.cpp:41:5: error: 'queue' was not declared in this scope
queue<pair<Node,int> > q;
^
0_0_22838952_17748.cpp:41:11: error: 'pair' was not declared in this scope
queue<pair<Node,int> > q;
^
0_0_22838952_17748.cpp:41:20: error: expected primary-expression before ',' token
queue<pair<Node,int> > q;
^
0_0_22838952_17748.cpp:41:21: error: expected primary-expression before 'int'
queue<pair<Node,int> > q;
^
0_0_22838952_17748.cpp:42:5: error: 'q' was not declared in this scope
q.push(make_pair(s, d[s.state]=0));
^
0_0_22838952_17748.cpp:42:37: error: 'make_pair' was not declared in this scope
q.push(make_pair(s, d[s.state]=0));
^
0_0_22838952_17748.cpp:46:18: error: expected primary-expression before ',' token
pair<Node,int> nowP = q.front(); q.pop();
^
0_0_22838952_17748.cpp:46:19: error: expected primary-expression before 'int'
pair<Node,int> nowP = q.front(); q.pop();
^
0_0_22838952_17748.cpp:47:20: error: 'nowP' was not declared in this scope
Node now = nowP.first; int len = nowP.second;
^
0_0_22838952_17748.cpp:49:22: error: expected primary-expression before ',' token
pair<Node,bool> nextP = next(now, nextd[i][0], nextd[i][1]);
^
0_0_22838952_17748.cpp:49:23: error: expected primary-expression before 'bool'
pair<Node,bool> nextP = next(now, nextd[i][0], nextd[i][1]);
^
0_0_22838952_17748.cpp:50:17: error: 'nextP' was not declared in this scope
if(!nextP.second) continue;
^
0_0_22838952_17748.cpp:51:29: error: 'nextP' was not declared in this scope
Node nextNode = nextP.first;
^
0_0_22838952_17748.cpp: In function 'int main()':
0_0_22838952_17748.cpp:73:18: error: 'gets' was not declared in this scope
while(gets(ch)) {
^
0_0_22838952_17748.cpp:82:49: error: 'printf' was not declared in this scope
if(d[s.state] == -1) printf("unsolvable");
^
0_0_22838952_17748.cpp:95:29: error: 'printf' was not declared in this scope
printf("%s\n",ch);
^
|