Problem railgun
User MasterCoder8421
Submission Time 2025-12-10 09:55:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

railgun.cpp: In function ‘int main()’:
railgun.cpp:14:37: error: no matching function for call to ‘std::vector<std::tuple<long long int, long long int, long long int> >::push_back(<brace-enclosed initializer list>)’
14 | robots.push_back({l, 0, r-l});
| ^
In file included from /usr/include/c++/9/vector:67,
from railgun.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1184:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::tuple<long long int, long long int, long long int>; _Alloc = std::allocator<std::tuple<long long int, long long int, long long int> >; std::vector<_Tp, _Alloc>::value_type = std::tuple<long long int, long long int, long long int>]’
1184 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:1184:35: note: no known conversion for