sphinx.cpp:7:16: error: 'std::vector<int> exp' redeclared as different kind of entity
7 | vector<int>ans,exp;
| ^~~
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/bits/requires_hosted.h:31,
from /usr/include/c++/13/iostream:38,
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 'bool check(std::vector<int>, int)':
sphinx.cpp:15:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
15 | exp[i]=n;
| ^
sphinx.cpp:19:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
19 | exp[i]=-1;
| ^
sphinx.cpp:20:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
20 | exp[i+1]=col;
| ^
sphinx.cpp:22:30: error: 'N' was not declared in this scope
22 | for(int i=ids.back()+1;i<N;i++)
| ^
sphinx.cpp:25:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
25 | exp[i]=n;
| ^
sphinx.cpp:28:31: error: cannot resolve overloaded function 'exp' based on conversion to type 'std::vector<int>'
28 | int cnt=perform_experiment(exp);
| ~~~~~~~~~~~~~~~~~~^~~~~
sphinx.cpp: In function 'std::vector<int> find_colours(int, std::vector<int>, std::vector<int>)':
sphinx.cpp:56:9: error: overloaded function with no contextual type information
56 | exp.resize(n);
| ^~~~~~