The first error is the meaningful one.
In C, if you do something like this:
foo(int j)
{
return j + 17;
}
the function
foo()
is assumed to return an int.
In C++, this is an error. The programmer must explicitly declare the return type.
Visual C++ is getting closer and closer to the standards in each new version.
In general, if your compiler gives you errors, your only option is to fix them.
Hope this helps,
Pablo.