fork download
  1. #include <stdio.h>
  2.  
  3. int f(int value)
  4. {
  5. int my_cup = value + 10;
  6. if (my_cup < value)
  7. {
  8. printf("overflow!\n");
  9. }
  10. return my_cup;
  11. }
  12.  
  13. int main(int argc, const char * argv[])
  14. {
  15. printf("%d\n", f(argc + 0x7FFFFFF8));
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.02s 1676KB
stdin
Standard input is empty
stdout
-2147483645