Problem coinmaster
User Pan
Submission Time 2024-09-19 22:22:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coinmaster.cpp:6:1: error: ‘ll’ does not name a type
6 | ll const INF = 1e18;
| ^~
coinmaster.cpp:8:5: error: ‘ll’ does not name a type
8 | ll sz;
| ^~
coinmaster.cpp:10:5: error: ‘ll’ does not name a type
10 | ll cost, u;
| ^~
coinmaster.cpp:12:12: error: expected ‘)’ before ‘cost’
12 | node(ll cost, ll u): sz(1), l(0), r(0), cost(cost), u(u) {}
| ~ ^~~~~
| )
coinmaster.cpp:16:12: error: ‘ll’ does not name a type
16 | static ll size(heap t) {
| ^~
coinmaster.cpp: In static member function ‘static void node::insert(node*&, node::heap)’:
coinmaster.cpp:26:22: error: ‘struct node’ has no member named ‘cost’
26 | if(root->cost > t->cost) {
| ^~~~
coinmaster.cpp:26:32: error: ‘struct node’ has no member named ‘cost’
26 | if(root->cost > t->cost) {<