Every time i try to compile my program using c (gcc 4.3.2) I get wrong answer,
but the code works well in fedora 16 as well as on ideone.com.
Plz help.
include
int main()
{
int n, i, k = 0;
scanf ("%d", &n);
long int a[n], x, y;
for (i = 0; i < n; i++)
{
scanf ("%ld %ld", &x, &y);
a[k] = x * y;
k++;
}
printf ("\n");
for (i = 0; i < n; i++)
{
printf ("%ld\n", a[i]);
}
return 0;
}