Heu ?
1)
#include <stdio.h>
int main (void)
{
printf("hello world \n" );
return 0;
}
2)
#include <stdio.h>
main ()
{
printf("hello world \n" );
}
Dans ton code, tu as déclaré main comme étant une fonction retournant un int. Or, tu ne retourne rien du tout dans ton code ! Voilà pourquoi ça plante. Gcc compile le programme sans trouver d'erreur, normal, il peut pas tout deviner non plus 
---------------
Samsung Galaxy S1 -> Samsung Galaxy S2 -> Samsung Note 2 -> Huawei Ascend Mate 7 -> ZTE Axon 7 -> OnePlus 6T -> Oppo Find X2 PRO -> Google Pixel 9 PRO XL