I have an error...
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crt1.o: In function _start':
(.text+0x20): undefined reference to
main'
I can't understand why I have that error.
Here is my program:
#include< iostream >
int n, m, a[101][101], viz[101];
using namespace std;
void DFS(int x)
{
int i;
viz[x]=1;
for(i=1;i<=n;i++)
if(a[x][i]==1 && viz[i]==0) DFS(i);
}
int Conex()
{int i;
DFS(1);
for(i=1; i<=n; i++)
if(viz[i]==0) return 0;
return 1;
}
what should I do?