error why!!

What the problem please.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17


#include "stdafx.h"
#include <iostream>

using namespace std;

 main ()
{
	float x,y,z,sum;
cout << "inter the Numbers";
cin >>x>>y>>z;
sum = x + y + z ;
cout << "The Sum Is" << sum ;
return  0 ;

}



Error:
 
Error	1	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int	
Last edited on
it is int main()
Thank you , but what different
1
2
 int main 
main
because standard requires main function to return int.
main() means that the type of the function is unknown because function type is determined by function return type and types of its parameters..
Thanks All
Topic archived. No new replies allowed.