|
|
вернуться в форумCrash (stack overflow)??? does anyone knows what am I doing wrong??? here's my code in C. #include <stdio.h> int main() { long N,i,j;
long ID[150000];
int M[150000];
scanf("%ld",&N);
for (i=0;i<N;i++){ scanf("%ld %d",&ID[i],&M[i]); }
for (i=100;i>=0;i--){ for (j=0;j<N;j++){ if (M[j] == i){ printf("%ld %d\n",ID[j],M[j]); } } }
return 0; } Re: Crash (stack overflow)??? Dynamic allocation , is the way. |
|
|