fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int c;
  5.  
  6. while((c=getchar())!=EOF)
  7. {
  8. if(c=='\t')
  9. {
  10. putchar('\\');
  11. putchar('t');
  12. }
  13.  
  14. if(c=='\b')
  15. {
  16. putchar('\\');
  17. putchar('b');
  18. }
  19.  
  20. if(c=='\\')
  21. {
  22. putchar('\\');
  23. putchar('\\');
  24. }
  25.  
  26. if(c !='\t' && c !='\b' && c!= '\\')
  27. putchar(c);
  28. }
  29.  
  30. return 0;
  31.  
  32. }
  33. // your code goes here
  34. return 0;
  35. }
  36.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:34:2: error: expected identifier or ‘(’ before ‘return’
  return 0;
  ^~~~~~
prog.c:35:1: error: expected identifier or ‘(’ before ‘}’ token
 }
 ^
stdout
Standard output is empty