Problem cht
User YSH2020
Submission Time 2025-04-25 21:46:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cht.cpp: In function ‘int main()’:
cht.cpp:82:40: error: new initializer expression list treated as compound expression [-fpermissive]
82 | root->upd(new line*(x[i], dp[i]));
| ^
cht.cpp:82:40: error: invalid conversion from ‘long long int’ to ‘line*’ [-fpermissive]
cht.cpp:82:19: error: cannot convert ‘line**’ to ‘line’
82 | root->upd(new line*(x[i], dp[i]));
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| line**
cht.cpp:37:19: note: initializing argument 1 of ‘void node::upd(line)’
37 | void upd(line a){
| ~~~~~^