0_0_33920496_8347.cpp: In function 'void bfs()':
0_0_33920496_8347.cpp:25:11: error: 'nobe' was not declared in this scope
queue <nobe>q;
^
0_0_33920496_8347.cpp:25:15: error: template argument 1 is invalid
queue <nobe>q;
^
0_0_33920496_8347.cpp:25:15: error: template argument 2 is invalid
0_0_33920496_8347.cpp:25:17: error: invalid type in declaration before ';' token
queue <nobe>q;
^
0_0_33920496_8347.cpp:26:8: error: expected ';' before 'ft'
nobe ft;
^
0_0_33920496_8347.cpp:27:3: error: 'ft' was not declared in this scope
ft.x=sx;
^
0_0_33920496_8347.cpp:30:5: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(ft);
^
0_0_33920496_8347.cpp:32:14: error: request for member 'empty' in 'q', which is of non-class type 'int'
while(!q.empty()){
^
0_0_33920496_8347.cpp:33:13: error: expected ';' before 'ff'
nobe ff=q.front();
^
0_0_33920496_8347.cpp:34:10: error: request for member 'pop' in 'q', which is of non-class type 'int'
q.pop();
^
0_0_33920496_8347.cpp:35:14: error: 'ff' was not declared in this scope
int x=ff.x;
^
0_0_33920496_8347.cpp:40:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
return 0;}
^
0_0_33920496_8347.cpp:46:22: error: 'judge' was not declared in this scope
if(!judge(x,y)){
^
0_0_33920496_8347.cpp:57:13: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(nt);
^
0_0_33920496_8347.cpp:60:4: error: 'else' without a previous 'if'
else if(i==0||i==2){//ÓÒºÍ×ó
^
0_0_33920496_8347.cpp:60:12: error: 'i' was not declared in this scope
else if(i==0||i==2){//ÓÒºÍ×ó
^
0_0_33920496_8347.cpp:62:21: error: 'nt' was not declared in this scope
nt.x=x+mx[i];
^
0_0_33920496_8347.cpp:64:38: error: 'judge' was not declared in this scope
if(judge(nt.x,nt.y)){
^
0_0_33920496_8347.cpp:67:27: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(nt);
^
0_0_33920496_8347.cpp:70:21: error: 'nt' was not declared in this scope
nt.x=x+mx[i];
^
0_0_33920496_8347.cpp:72:39: error: 'judge' was not declared in this scope
if(judge(nt.x,nt.y)){
^
0_0_33920496_8347.cpp:75:27: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(nt);
^
0_0_33920496_8347.cpp:78:21: error: 'nt' was not declared in this scope
nt.x=ff.x;
^
0_0_33920496_8347.cpp:82:23: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(nt);
^
0_0_33920496_8347.cpp:86:21: error: 'nt' was not declared in this scope
nt.x=x+mx[i];
^
0_0_33920496_8347.cpp:88:39: error: 'judge' was not declared in this scope
if(judge(nt.x,nt.y)){
^
0_0_33920496_8347.cpp:91:27: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(nt);
^
0_0_33920496_8347.cpp:94:21: error: 'nt' was not declared in this scope
nt.x=x+mx[i];
^
0_0_33920496_8347.cpp:96:39: error: 'judge' was not declared in this scope
if(judge(nt.x,nt.y)){
^
0_0_33920496_8347.cpp:99:27: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(nt);
^
0_0_33920496_8347.cpp:102:21: error: 'nt' was not declared in this scope
nt.x=ff.x;
^
0_0_33920496_8347.cpp:106:23: error: request for member 'push' in 'q', which is of non-class type 'int'
q.push(nt);
^
0_0_33920496_8347.cpp: At global scope:
0_0_33920496_8347.cpp:111:1: error: expected declaration before '}' token
}
^
|