Problem plagia
User ARock
Submission Time 2024-01-26 15:31:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

plagia.cpp: In constructor ‘node::node(int, int)’:
plagia.cpp:18:43: error: incompatible types in assignment of ‘int’ to ‘bool [31]’
18 | s = S, e = E, m = (s+e)/2, lazy = 0;
| ^
plagia.cpp:19:15: error: incompatible types in assignment of ‘int’ to ‘int [31]’
19 | val = 0;
| ^
plagia.cpp: In member function ‘void node::update(int, int, int)’:
plagia.cpp:50:32: error: no matching function for call to ‘node::update(int&, int&)’
50 | else l->update(S, m), r->update(m+1, E, V);
| ^
plagia.cpp:39:10: note: candidate: ‘void node::update(int, int, int)’
39 | void update(int S, int E, int V) {
| ^~~~~~
plagia.cpp:39:10: note: candidate expects 3 arguments, 2 provided
plagia.cpp: In function ‘void upd(int, int, int)’:
plagia.cpp:76:34: error: base operand of ‘->’ has non-poin