What am I doing wrong

1. I am using VS 8
2. The program I use is
#include <LEDA/system/basic.h>
#include <LEDA/numbers/integer.h>
#include <iostream>
using namespace std;
using namespace leda;

main() {cout << "factorial of 6 is: " << factorial( 6 ) << endl; return 0;}

3.When I try and build I get
1>------ Build started: Project: ThirdLedaFactorial, Configuration: Debug Win32 ------
1>Compiling...
1>Third.cpp
1>f:\mywork\visual studio 2008\projects\thirdledafactorial\thirdledafactorial\third.cpp(7) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>Build log was saved at "file://f:\MyWork\Visual Studio 2008\Projects\ThirdLedaFactorial\ThirdLedaFactorial\Debug\BuildLog.htm"
1>ThirdLedaFactorial - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

4. When I change the return type of main to int or integer I get a mistake
5.What am I doing wrong?
The cross posting was deliberate, as I am finding it hard to get an answer
This isn't a 24/7 live helpline. It's a web forum.

You posted it an hour ago and got responses from 2 separate people. That's pretty good response time if you ask me.
Topic archived. No new replies allowed.