| Problem | arrayngement |
|---|---|
| User | ilikefriendchickn |
| Submission Time | 2026-06-26 17:25:23 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
arrayngement.cpp: In function ‘int main()’:
arrayngement.cpp:22:24: error: invalid conversion from ‘std::ios_base& (*)(std::ios_base&)’ to ‘std::vector<long long int>::size_type’ {aka ‘long unsigned int’} [-fpermissive]
22 | ans[i] = a[right];
| ^~~~~
| |
| std::ios_base& (*)(std::ios_base&)
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 arrayngement.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1040:28: note: initializing argument 1 of ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type)