deliveries.cpp:3:1: error: 'vector' does not name a type
3 | vector <int> w, t;
| ^~~~~~
deliveries.cpp: In function 'void init(int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
deliveries.cpp:5:3: error: 'w' was not declared in this scope
5 | w = W;
| ^
deliveries.cpp:6:3: error: 't' was not declared in this scope
6 | t = T;
| ^
deliveries.cpp: In function 'long long int max_time(int, int)':
deliveries.cpp:11:3: error: 'w' was not declared in this scope
11 | w[S] = X;
| ^
deliveries.cpp:12:15: error: 'min' was not declared in this scope; did you mean 'std::min'?
12 | return 1ll * min(w[0] + 1, w[1]) * t[0];
| ^~~
| std::min
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from deliveries.cpp:2:
/usr/include/c++/10/bits/stl_algo.h:3474:5: note: 'std::min' declared here
3474 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
deliveries.cpp:12:37: error: 't' was not declared in this scope
12 | return 1ll * min(w[0] + 1, w[1]) * t[0];
| ^