foo.cc: In function 'void Merge(node*, node, node&)':
foo.cc:91:8: error: no match for 'operator=' (operand types are 'node' and 'node*')
91 | t = pt ++ ;
| ^~
foo.cc:21:8: note: candidate: 'node& node::operator=(const node&)'
21 | struct node {
| ^~~~
foo.cc:21:8: note: no known conversion for argument 1 from 'node*' to 'const node&'
foo.cc:21:8: note: candidate: 'node& node::operator=(node&&)'
foo.cc:21:8: note: no known conversion for argument 1 from 'node*' to 'node&&'
foo.cc:92:3: error: base operand of '->' has non-pointer type 'node'
92 | t -> l = l -> l , t -> r = l -> r , t -> mid = l -> mid , t -> g = gcd( l -> g , r -> g ) ;
| ^~
foo.cc:92:21: error: base operand of '->' has non-pointer type 'node'
92 | t -> l = l -> l , t -> r = l -> r , t -> mid = l -> mid , t -> g = gcd( l -> g , r -> g ) ;
| ^~
foo.cc:92:39: error: base operand of '->' has non-pointer type 'node'
92 | t -> l = l -> l , t -> r = l -> r , t -> mid = l -> mid , t -> g = gcd( l -> g , r -> g ) ;
| ^~
foo.cc:92:61: error: base operand of '->' has non-pointer type 'node'
92 | t -> l = l -> l , t -> r = l -> r , t -> mid = l -> mid , t -> g = gcd( l -> g , r -> g ) ;
| ^~
foo.cc:92:84: error: base operand of '->' has non-pointer type 'node'
92 | t -> l = l -> l , t -> r = l -> r , t -> mid = l -> mid , t -> g = gcd( l -> g , r -> g ) ;
| ^~
foo.cc:93:8: error: base operand of '->' has non-pointer type 'node'
93 | if ( t -> l == t -> r ) return ;
| ^~
foo.cc:93:18: error: base operand of '->' has non-pointer type 'node'
93 | if ( t -> l == t -> r ) return ;
| ^~
foo.cc:94:20: error: base operand of '->' has non-pointer type 'node'
94 | Merge( l -> lc , r -> lc , t -> lc ) , Merge( l -> rc , r -> rc , t -> rc ) ;
| ^~
foo.cc:94:30: error: base operand of '->' has non-pointer type 'node'
94 | Merge( l -> lc , r -> lc , t -> lc ) , Merge( l -> rc , r -> rc , t -> rc ) ;
| ^~
foo.cc:94:59: error: base operand of '->' has non-pointer type 'node'
94 | Merge( l -> lc , r -> lc , t -> lc ) , Merge( l -> rc , r -> rc , t -> rc ) ;
| ^~
foo.cc:94:69: error: base operand of '->' has non-pointer type 'node'
94 | Merge( l -> lc , r -> lc , t -> lc ) , Merge( l -> rc , r -> rc , t -> rc ) ;
| ^~
foo.cc: In function 'void Build(int, int, Node*&)':
foo.cc:107:34: error: could not convert 't->Node::rc->Node::t' from 'node*' to 'node'
107 | Merge( t -> lc -> t , t -> rc -> t , t -> t ) ;
| ~~~~~~~~~~~^
| |
| node*
[Hydro](https://hydro.ac)提供评测服务