fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int n,m;
  5. scanf("%d %d",&m,&n);
  6. int *arr = malloc(sizeof(int)*n*m);
  7. for(int i=0;i<m*n;scanf("%d",arr+i),i++)
  8. {
  9. printf("\n%d", arr[i]);
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0s 9432KB
stdin
3 2 11 22 33 44 55 66
stdout
0
0
0
0
0
0