foo.cc: In function 'int main()':
foo.cc:20:3: error: 'node' was not declared in this scope
20 | node tmp;
| ^~~~
foo.cc:21:6: error: 'tmp' was not declared in this scope; did you mean 'tm'?
21 | tmp=f[j-1];
| ^~~
| tm
foo.cc:27:4: error: expected ')' before 'if'
27 | }
| ^
| )
28 | if(tmp.d<f[j].d){
| ~~
foo.cc:24:8: note: to match this '('
24 | }else({
| ^
foo.cc:30:4: error: expected ';' before 'else'
30 | }else{
| ^~~~
| ;
foo.cc:41:1: error: expected '}' at end of input
41 | }
| ^
foo.cc:7:11: note: to match this '{'
7 | int main(){
| ^
[Hydro](https://hydro.ac)提供评测服务