0_0_23081761_638.cpp: In function 'int Cal(int, int, int, int, int)':
0_0_23081761_638.cpp:17:12: error: 'node' was not declared in this scope
queue <node> p;
^
0_0_23081761_638.cpp:17:16: error: template argument 1 is invalid
queue <node> p;
^
0_0_23081761_638.cpp:17:16: error: template argument 2 is invalid
0_0_23081761_638.cpp:17:19: error: invalid type in declaration before ';' token
queue <node> p;
^
0_0_23081761_638.cpp:23:7: error: request for member 'push' in 'p', which is of non-class type 'int'
p.push(tmp);
^
0_0_23081761_638.cpp:24:13: error: request for member 'size' in 'p', which is of non-class type 'int'
while(p.size()>0)
^
0_0_23081761_638.cpp:26:15: error: request for member 'front' in 'p', which is of non-class type 'int'
tmp=p.front();
^
0_0_23081761_638.cpp:27:11: error: request for member 'pop' in 'p', which is of non-class type 'int'
p.pop();
^
0_0_23081761_638.cpp:39:23: error: request for member 'push' in 'p', which is of non-class type 'int'
p.push(q);
^
0_0_23081761_638.cpp: In function 'int main()':
0_0_23081761_638.cpp:51:17: error: expected primary-expression before '%' token
while(scanf(%d,&num)!=EOF)
^
0_0_23081761_638.cpp:51:18: error: 'd' was not declared in this scope
while(scanf(%d,&num)!=EOF)
^
0_0_23081761_638.cpp:54:15: error: expected primary-expression before '%' token
scanf(%d%d%d%d,&x,&y,&ex,&ey);
^
0_0_23081761_638.cpp:55:16: error: expected primary-expression before '%' token
printf(%d,Cal(x,y,ex,ey,num));
^
|