Problem skibuddy
User justin271828
Submission Time 2024-12-23 10:25:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

skibuddy.cpp: In member function ‘void node::up(int, long long int)’:
skibuddy.cpp:42:10: error: invalid conversion from ‘std::vector<int>*’ to ‘long long int’ [-fpermissive]
42 | val = v;
| ^
| |
| std::vector<int>*
skibuddy.cpp: In function ‘int main()’:
skibuddy.cpp:63:31: error: ‘heavy’ was not declared in this scope
63 | for (int i = 1; i <= n; i++) heavy[i] = i;
| ^~~~~
skibuddy.cpp:70:32: error: ‘Q’ was not declared in this scope
70 | for (int qwerty = 0; qwerty < Q; qwerty++) {
| ^