Compilation error

/usr/lib/gcc/i486-linux-gnu/4.8/…/…/…/i386-linux-gnu/crt1.o:
In function ‘_start’: (.text+0x18):
undefined reference to ‘main’
collect2: error: ld returned 1 exit
status

I am getting this compilation error and I have no idea where my code is wrong…Please help…I cant post the code 'cause NOV contest is going on…

compiler says it can’t find the main function…

It means that your program does not define a main function

Apparently none your files define a
function with the signature

int main ( )
{
return 0;
}

2 Likes

i solved it…i was assigning an unsigned long long to int variable without use casting…thanks

//