Problem overtaking
User jovan
Submission Time 2025-07-13 21:33:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

overtaking.cpp: In function ‘int main()’:
overtaking.cpp:67:16: error: invalid conversion from ‘int64_t*’ {aka ‘long int*’} to ‘int64*’ {aka ‘long long int*’} [-fpermissive]
67 | init(L, N, T_arr, W_arr, X, M, S_arr);
| ^~~~~
| |
| int64_t* {aka long int*}
overtaking.cpp:12:31: note: initializing argument 3 of ‘void init(int, int, int64*, int*, int, int, int*)’
12 | void init(int l, int n, int64 t[], int w[], int x, int m, int s[]) {
| ~~~~~~^~~