Problem | cokemoresugar |
---|---|
User | wrizz69 |
Submission Time | 2024-12-11 11:32:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cokemoresugar.cpp: In member function ‘void node::update(long long int, long long int, long long int*)’:
cokemoresugar.cpp:30:22: error: ‘C’ was not declared in this scope
30 | val = (X / array[C]) * V;
| ^
cokemoresugar.cpp:35:20: error: no matching function for call to ‘node::update(long long int&, long long int&)’
35 | l -> update(X,V); // X is in the left child
| ^
cokemoresugar.cpp:28:7: note: candidate: ‘void node::update(long long int, long long int, long long int*)’
28 | void update(int X, int V, int array[]) { //change the X element to be V value, point update
| ^~~~~~
cokemoresugar.cpp:28:7: note: candidate expects 3 arguments, 2 provided
cokemoresugar.cpp:38:20: error: no matching function for call to ‘node::update(long long int&, long long int&)’
38 | r -> update(X,V);
| ^
cokemoresugar.cpp:28:7: note: candidate: