sphinx.cpp:5:12: error: 'std::vector<int> exp' redeclared as different kind of entity
5 | 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:7:9: error: overloaded function with no contextual type information
7 | exp.resize(N);ans.resize(N);
| ^~~~~~
sphinx.cpp:11:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
11 | for(int i=0;i<N;i++)exp[i]=col;
| ^
sphinx.cpp:12:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
12 | exp[u]=-1;
| ^
sphinx.cpp:13:38: error: cannot resolve overloaded function 'exp' based on conversion to type 'std::vector<int>'
13 | if(perform_experiment(exp)==1)ans[u]=col;
| ~~~~~~~~~~~~~~~~~~^~~~~
sphinx.cpp:18:1: warning: control reaches end of non-void function [-Wreturn-type]
18 | }
| ^