error C2660: function does not take 0 arguments
hello.. i cant' rootcause this....
here is part of my code (there is more code following, but i don't
think it affects):
void _corrupts(const vector<vector<bool> >& cyclades, const int
vertex, vector<int>& visited, const int& N)
{
vector<int> tovisit;
for (int i=0; i<cyclades[vertex].size(); i++)
if (cyclades[vertex][i])
tovisit.push_back(cyclades[vertex][i]);
if (!in(vertex, visited))
visited.push_back(vertex);
for (int i=0; i<tovisit.size(); i++)
if (!in(tovisit[i], visited))
_corrupts(cyclades, tovisit[i], visited, N);
}
bool corrupts(const vector<vector<bool> >& cyclades, const int vertex,
vector<int>& visited, const int& N)
{
_corrupts(const vector<vector<bool> >& cyclades, const int
vertex, vector<int>& visited, const int& N); //line 31
if (visited.size() != N)
return true;
return false;
}
in _corrupts, a function in is used, and defined as following:
bool in(const int& vertex, const vector<int>& visited);
i get 3 errors:
reversedelete.cpp(31) : error C2143: syntax error : missing ')' before
'const'
reversedelete.cpp(31) : error C2660: '_corrupts' : function does not
take 0 arguments
reversedelete.cpp(31) : error C2059: syntax error : ')'
could you please help me?