strange_device.cpp: In function 'int main()':
strange_device.cpp:97:35: error: invalid type argument of unary '*' (have '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'})
97 | ll L = ceil((long double) * l[i] / b), R = r[i] / b;
strange_device.cpp:98:27: error: 'R' was not declared in this scope
98 | pos.pb({0, r1, L, R});
| ^
strange_device.cpp:98:15: error: no matching function for call to 'std::vector<std::array<long long int, 4> >::push_back(<brace-enclosed initializer list>)'
98 | pos.pb({0, r1, L, R});
| ~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from strange_device.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::array<long long int, 4>; _Alloc = std::allocator<std::array<long long int, 4> >; std::vector<_Tp, _Alloc>::value_type = std::array<long long int, 4>]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::array<long long int, 4>&'}
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::array<long long int, 4>; _Alloc = std::allocator<std::array<long long int, 4> >; std::vector<_Tp, _Alloc>::value_type = std::array<long long int, 4>]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::array<long long int, 4> >::value_type&&' {aka 'std::array<long long int, 4>&&'}
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
strange_device.cpp:100:32: error: invalid type argument of unary '*' (have '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'})
100 | L = ceil((long double) * (l[i] - r2) / b); R = (r[i] - r2) / b;
| ^~~~~~~~~~~~~
strange_device.cpp:101:33: error: no matching function for call to 'std::vector<std::array<long long int, 4> >::push_back(<brace-enclosed initializer list>)'
101 | if (r1 + 1 <= r2) pos.pb({r1 + 1, r2, L, R});
| ~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from strange_device.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::array<long long int, 4>; _Alloc = std::allocator<std::array<long long int, 4> >; std::vector<_Tp, _Alloc>::value_type = std::array<long long int, 4>]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::array<long long int, 4>&'}
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::array<long long int, 4>; _Alloc = std::allocator<std::array<long long int, 4> >; std::vector<_Tp, _Alloc>::value_type = std::array<long long int, 4>]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::array<long long int, 4> >::value_type&&' {aka 'std::array<long long int, 4>&&'}
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
strange_device.cpp:103:32: error: invalid type argument of unary '*' (have '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'})
103 | L = ceil((long double) * (l[i] - (r2 + 1)) / b); R = (r[i] - (r2 + 1)) / b;
| ^~~~~~~~~~~~~~~~~~~
strange_device.cpp:104:36: error: no matching function for call to 'std::vector<std::array<long long int, 4> >::push_back(<brace-enclosed initializer list>)'
104 | if (r2 + 1 <= b - 1) pos.pb({r2 + 1, b - 1, L, R});
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from strange_device.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::array<long long int, 4>; _Alloc = std::allocator<std::array<long long int, 4> >; std::vector<_Tp, _Alloc>::value_type = std::array<long long int, 4>]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::array<long long int, 4>&'}
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::array<long long int, 4>; _Alloc = std::allocator<std::array<long long int, 4> >; std::vector<_Tp, _Alloc>::value_type = std::array<long long int, 4>]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<std::array<long long int, 4> >::value_type&&' {aka 'std::array<long long int, 4>&&'}
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~