fork download
  1. #include <stdio.h>
  2. typedef enum{false, true} bool;
  3. int main(void) {
  4. // your code goes here
  5.  
  6. bool disaster = false;
  7. int i, j;
  8. for(i=0;i<100;++i)
  9. for(j=0;j<100;++j)
  10. {
  11. if((i + j) >= 150)
  12. disaster = true;
  13. if(disaster)
  14. goto error;
  15. }
  16. error :
  17. printf("Error occured at i = %d & j = %d.\n", i, j);
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Error occured at i = 51 & j = 99.