Problem | helloworld |
---|---|
User | thisusernameistaken |
Submission Time | 2024-02-19 18:00:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
helloworld.cpp:12:41: error: expected ‘;’ at end of member declaration
12 | struct node { PII ans, left, right; int sz };
| ^~
| ;
helloworld.cpp: In member function ‘node SEG::merge(node, node)’:
helloworld.cpp:42:116: error: no match for ‘operator=’ (operand types are ‘node’ and ‘<brace-enclosed initializer list>’)
42 | if (x.right.val==y.left.val && x.right.len+y.left.len>ans.ans.len) ans={x.right.len+y.left.len, x.right.val};
| ^
helloworld.cpp:12:8: note: candidate: ‘node& node::operator=(const node&)’
12 | struct node { PII ans, left, right; int sz };
| ^~~~
helloworld.cpp:12:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const node&’
helloworld.