Problem harbingers
User Pan
Submission Time 2024-06-15 18:28:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

harbingers.cpp: In member function ‘void node::create()’:
harbingers.cpp:64:11: error: ‘struct node’ has no member named ‘copy’
64 | l = l->copy();
| ^~~~
harbingers.cpp:65:11: error: ‘struct node’ has no member named ‘copy’
65 | r = r->copy();
| ^~~~
harbingers.cpp: At global scope:
harbingers.cpp:51:1: error: new types may not be defined in a return type
51 | struct node{
| ^~~~~~
harbingers.cpp:51:1: note: (perhaps a semicolon is missing after the definition of ‘node’)
harbingers.cpp: In function ‘node node(ll, ll, line, node*, node*)’:
harbingers.cpp:7:11: error: ‘second’ was not declared in this scope
7 | #define s second
| ^~~~~~
harbingers.cpp:76:3: note: in expansion of macro ‘s’
76 | s = _s, e = _e, m = (_s + _e)>>1;
| ^
harbingers.cpp:76:11: error: ‘e’ was not declared in this scope; did you mean ‘_e’?
76 | s = _s,