fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int numbers[1024*1024], top = 0;
  5. while(fscanf(stdin, "%d", &numbers[top++]) != EOF)
  6. printf("%d ", numbers[top-1]);
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 6032KB
stdin
1 2 3
stdout
1 2 3