foo.c: In function 'main':
foo.c:12:18: error: stray '\' in program
12 | printf(y1\n);
| ^
foo.c:12:18: error: expected ')' before 'n'
12 | printf(y1\n);
| ~ ^~
| )
foo.c:12:16: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
12 | printf(y1\n);
| ^~
| |
| int
In file included from foo.c:1:
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int'
356 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
foo.c:13:18: error: stray '\' in program
13 | printf(y2\n);
| ^
foo.c:13:18: error: expected ')' before 'n'
13 | printf(y2\n);
| ~ ^~
| )
foo.c:13:16: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
13 | printf(y2\n);
| ^~
| |
| int
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int'
356 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
foo.c:14:18: error: stray '\' in program
14 | printf(y3\n);
| ^
foo.c:14:18: error: expected ')' before 'n'
14 | printf(y3\n);
| ~ ^~
| )
foo.c:14:16: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
14 | printf(y3\n);
| ^~
| |
| int
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int'
356 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务