Problem ducks
User oogabooga
Submission Time 2025-08-01 08:44:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ducks.cpp: In function ‘ll max_movement(int, int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)’:
ducks.cpp:58:31: error: redeclaration of ‘std::vector<long long int> P’
58 | vector<ll> X(N), P(N), Y(M), P(M);
| ^
ducks.cpp:58:19: note: ‘std::vector<long long int> P’ previously declared here
58 | vector<ll> X(N), P(N), Y(M), P(M);
| ^
ducks.cpp:60:47: error: ‘T’ was not declared in this scope
60 | for (int j = 0; j < M; j++) Y[j] = YY[j], T[j] = TT[j];
| ^
ducks.cpp:65:27: error: ‘T’ was not declared in this scope
65 | seeds[j] = {Y[j], T[j]};
| ^
ducks.cpp:65:31: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int>