fork download
  1. #include <stdio.h>
  2.  
  3.  
  4. int main(void) {
  5. // your code goes here
  6. char str[2];
  7. sprintf(str, "Value of Pi = %f", 3.14);
  8.  
  9. puts(str);
  10.  
  11. return 0;
  12. }
  13.  
Runtime error #stdin #stdout #stderr 0s 5424KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
*** buffer overflow detected ***: ./prog terminated