fork download
  1. #include <stdio.h>
  2. int main ()
  3. {
  4. char buf[256];
  5. scanf("%s", &buf);
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:5:5: error: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[256]’ [-Werror=format=]
     scanf("%s", &buf);
     ^
cc1: all warnings being treated as errors
stdout
Standard output is empty