#include <stdio.h> int main () { char buf[256]; }
Standard input is empty
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
Standard output is empty