sphinx.cpp:6:12: error: 'std::vector<int> exp' redeclared as different kind of entity
6 | vector<int>exp,ans;
| ^~~
In file included from /usr/include/features.h:502,
from /usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:679,
from /usr/include/c++/13/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:33,
from sphinx.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:95:1: note: previous declaration 'double exp(double)'
95 | __MATHCALL_VEC (exp,, (_Mdouble_ __x));
| ^~~~~~~~~~~~~~
sphinx.cpp: In function 'std::vector<int> find_colours(int, std::vector<int>, std::vector<int>)':
sphinx.cpp:9:9: error: overloaded function with no contextual type information
9 | exp.resize(N);ans.resize(N);
| ^~~~~~
sphinx.cpp:13:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
13 | exp[i]=col;
| ^
sphinx.cpp:15:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
15 | exp[u]=-1;
| ^
sphinx.cpp:16:38: error: cannot resolve overloaded function 'exp' based on conversion to type 'std::vector<int>'
16 | if(perform_experiment(exp)==1)ans[u]=col;
| ~~~~~~~~~~~~~~~~~~^~~~~