fork(1) download
  1. #include <stdio.h>
  2.  
  3. void fn(void)
  4. {
  5. /* write something after this comment so that the program output is 10 */
  6. int a[1] = {0};
  7. int j = 0;
  8. while(a[j] != 5) ++j;
  9. a[j] = 10;
  10. fprintf(stderr, "Found at offset @ %d\n", j);
  11. /* write something before this comment */
  12. }
  13.  
  14. int main()
  15. {
  16. int i = 5;
  17. fn();
  18. printf("%d\n", i);
  19. return 0;
  20. }
  21.  
Time limit exceeded #stdin #stdout 5s 2004KB
stdin
Standard input is empty
stdout
Standard output is empty