fork download
  1. #include <stdio.h>
  2. int ft_atoi(char s)
  3. {
  4. printf("%c",s)
  5. return(0);
  6. }
  7. int main() {
  8. int r;
  9. r=ft_atoi('1236');
  10. printf("%d",r);
  11. return(0);
  12. }
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function 'ft_atoi':
prog.c:5:4: error: expected ';' before 'return'
    return(0);
    ^
prog.c: In function 'main':
prog.c:9:12: warning: multi-character character constant [-Wmultichar]
  r=ft_atoi('1236');
            ^
prog.c:9:12: warning: overflow in implicit constant conversion [-Woverflow]
prog.c: In function 'ft_atoi':
prog.c:6:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
stdout
Standard output is empty