foo.cc: In function 'int main()':
foo.cc:8:19: error: 'a' was not declared in this scope
scanf("%d%d",&a,&b);
^
foo.cc:8:22: error: 'b' was not declared in this scope
scanf("%d%d",&a,&b);
^
foo.cc:9:5: error: 'node' was not declared in this scope
node *A=getnew(a);
^~~~
foo.cc:9:11: error: 'A' was not declared in this scope
node *A=getnew(a);
^
foo.cc:9:13: error: 'getnew' was not declared in this scope
node *A=getnew(a);
^~~~~~
foo.cc:9:13: note: suggested alternative: 'getw'
node *A=getnew(a);
^~~~~~
getw
foo.cc:10:11: error: 'B' was not declared in this scope
node *B=getnew(b);
^
foo.cc:11:9: error: 'connect' was not declared in this scope
connect(A,B);
^~~~~~~
foo.cc:12:9: error: 'cut' was not declared in this scope
cut(A,B);
^~~
foo.cc:12:9: note: suggested alternative: 'putw'
cut(A,B);
^~~
putw
foo.cc:14:19: error: 'query' was not declared in this scope
printf("%d\n",query(A,B));
^~~~~
foo.cc: At global scope:
foo.cc:17:1: error: expected declaration before '}' token
}
^
[Hydro](https://hydro.ac)提供评测服务