| Problem | 4russians |
|---|---|
| User | TomThuy123 |
| Submission Time | 2026-03-08 13:06:16 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from 4russians.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h: In instantiation of ‘typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type std::__fill_a(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = long long int; _Tp = long long int; typename __gnu_cxx::__enable_if<std::__is_scalar<_Tp>::__value, void>::__type = void]’:
/usr/include/c++/9/bits/stl_algobase.h:749:20: required from ‘void std::fill(_ForwardIterator, _ForwardIterator, const _Tp&) [with _ForwardIterator = long long int; _Tp = long long int]’
4russians.cpp:42:57: required from here
/usr/include/c++/9/bits/stl_algobase.h:714:2: error: invalid type argument of unary ‘*’ (have ‘long long int’)
714 | *__first = __tmp;