undefined reference to `WinMain'

I write a code for creating multiplication table . When it is compiled, i meet some error.
The error is
18 C:\crossdev\src\mingw-w64-v3-git\mingw-w64-crt\crt\crt0_c.c undefined reference to `WinMain'
C:\Users\teopeishen\Documents\my code\collect2.exe [Error] ld returned 1 exit status
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  #include <iostream>
using namespace std;
int mian()

{
	int n, i;
	printf("Enter an integer:");
	scanf("%d",&n);
	
	for (i=1;i<=12;++i)
	{
		printf("%d*%d=%d\n",n,i,n*i);
	}
	
	return 0;
}
Looks like to created a Windows program by accident. You need to create a Console application
int mian()
main() not mian()
ya rite. Thnx for help
Topic archived. No new replies allowed.