popa.cpp: In function 'void read(T&)':
popa.cpp:13:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
13 | register int c;
| ^
popa.cpp: In function 'int solve(int, int)':
popa.cpp:35:25: error: invalid conversion from 'int*' to 'int' [-fpermissive]
35 | if (query(i, i, l, r))
| ^
| |
| int*
In file included from popa.cpp:2:
popa.h:4:29: note: initializing argument 3 of 'int query(int, int, int, int)'
4 | int query(int a, int b, int c, int d);
| ~~~~^
popa.cpp:35:28: error: invalid conversion from 'int*' to 'int' [-fpermissive]
35 | if (query(i, i, l, r))
| ^
| |
| int*
In file included from popa.cpp:2:
popa.h:4:36: note: initializing argument 4 of 'int query(int, int, int, int)'
4 | int query(int a, int b, int c, int d);
| ~~~~^
popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:51:10: error: assignment of function 'std::ios_base& std::left(std::ios_base&)'
51 | left = &l;
| ~~~~~^~~~
popa.cpp:52:11: error: assignment of function 'std::ios_base& std::right(std::ios_base&)'
52 | right = &r;
| ~~~~~~^~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from popa.cpp:1:
/usr/include/c++/10/bits/stl_algo.h: In instantiation of 'void std::shuffle(_RAIter, _RAIter, _UGenerator&&) [with _RAIter = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _UGenerator = int (&)() noexcept]':
popa.cpp:30:37: required from here
/usr/include/c++/10/bits/stl_algo.h:3769:2: error: 'std::remove_reference<int (&)() noexcept>::type' {aka 'int() noexcept'} is not a class, struct, or union type
3769 | __uc_type;
| ^~~~~~~~~
/usr/include/c++/10/bits/stl_algo.h:3797:37: error: 'std::remove_reference<int (&)() noexcept>::type' {aka 'int() noexcept'} is not a class, struct, or union type
3797 | const pair<__uc_type, __uc_type> __pospos =
| ^~~~~~~~
/usr/include/c++/10/bits/stl_algo.h:3797:37: error: 'std::remove_reference<int (&)() noexcept>::type' {aka 'int() noexcept'} is not a class, struct, or union type