Problem moneylaundering
User benji9736
Submission Time 2025-12-29 15:01:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneylaundering.cpp: In function ‘int main()’:
moneylaundering.cpp:11:31: error: no matching function for call to ‘std::vector<std::tuple<int, int, int> >::emplace(int&, int&, int&)’
11 | adj[u].emplace(v, a, b);
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from moneylaundering.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1245:2: note: candidate: ‘template<class ... _Args> std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::emplace(std::vector<_Tp, _Alloc>::const_iterator, _Args&& ...) [with _Args = {_Args ...}; _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tup