art.cpp:85:5: error: ambiguating new declaration of 'int random()'
85 | int random()
| ^~~~~~
In file included from /usr/include/c++/10/bits/std_abs.h:38,
from /usr/include/c++/10/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:41,
from art.cpp:4:
/usr/include/stdlib.h:401:17: note: old declaration 'long int random()'
401 | extern long int random (void) __THROW;
| ^~~~~~
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from art.cpp:4:
/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 = long int (&)() noexcept]':
art.cpp:100:34: required from here
/usr/include/c++/10/bits/stl_algo.h:3769:2: error: 'std::remove_reference<long int (&)() noexcept>::type' {aka 'long 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<long int (&)() noexcept>::type' {aka 'long 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<long int (&)() noexcept>::type' {aka 'long int() noexcept'} is not a class, struct, or union type
interface.cpp: In function 'int publish(std::vector<int>)':
interface.cpp:20:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
20 | if(v.size() != N) {
| ~~~~~~~~~^~~~
interface.cpp: In function 'void answer(std::vector<int>)':
interface.cpp:36:17: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
36 | if(v.size() != N) {
| ~~~~~~~~~^~~~