Problem cht
User kenkunkin
Submission Time 2026-03-13 20:38:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cht.cpp:19:19: error: expected unqualified-id before ‘/’ token
19 | int m, c; /
| ^
cht.cpp: In constructor ‘node::node(int, int)’:
cht.cpp:33:25: error: no matching function for call to ‘line::line()’
33 | node(int _s, int _e){
| ^
cht.cpp:23:5: note: candidate: ‘line::line(int, int)’
23 | line(int _m, int _c){
| ^~~~
cht.cpp:23:5: note: candidate expects 2 arguments, 0 provided
cht.cpp:18:8: note: candidate: ‘constexpr line::line(const line&)’
18 | struct line{
| ^~~~
cht.cpp:18:8: note: candidate expects 1 argument, 0 provided
cht.cpp:18:8: note: candidate: ‘constexpr line::line(line&&)’
cht.cpp:18:8: note: candidate expects 1 argument, 0 provided
cht.cpp: In member function ‘void node::upd(line)’:
cht.cpp:53:23: error: no matching function for call to ‘line::line()’
53 | if(nl == line() || lf == rgt)return