Problem overtaking
User ovuvuevuevueenyetuewuevue
Submission Time 2025-02-16 18:45:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

overtaking.cpp:1:25: error: ‘vector’ has not been declared
1 | void init(int L, int N, vector<long long> T, vector<int> W, int X, int M, vector<int> S) {
| ^~~~~~
overtaking.cpp:1:31: error: expected ‘,’ or ‘...’ before ‘<’ token
1 | void init(int L, int N, vector<long long> T, vector<int> W, int X, int M, vector<int> S) {
| ^
overtaking.cpp: In function ‘void init(int, int, int)’:
overtaking.cpp:3:5: error: invalid use of ‘this’ in non-member function
3 | this->L = L;
| ^~~~
overtaking.cpp:4:5: error: invalid use of ‘this’ in non-member function
4 | this->N = N;
| ^~~~
overtaking.cpp:5:5: error: invalid use of ‘this’ in non-member function
5 | this->T = T;
| ^~~~
overtaking.cpp:5:15: error: ‘T’ was not declared in this scope
5 | this->T = T;