>\
これ通ります?、通るなら、変数に予期しない値ですよ。
input_number()とか大丈夫ですか?

if ((i=malloc(1024000000))==NULL){
printf ("Can't allocate");
} else {printf ("allocated \n");}