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?

Re: error C2660: function does not take 0 arguments by Igor

Igor
Tue Feb 27 11:48:27 CST 2007

"streamkid" <streamkid@gmail.com> wrote in message
news:1172597843.349979.278020@t69g2000cwt.googlegroups.com
> 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 this is supposed to be a function call, drop parameter types. If this
is supposed to be local function declaration, you are missing return
type.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925



RE: error C2660: function does not take 0 arguments by Carlos

Carlos
Tue Feb 27 11:56:25 CST 2007

Hi,

I think line 31 should be

_corrupts(cyclades, vertex, visited, N); //line 31

unless you are trying to do strange things.