foo.c: In function 'main':
foo.c:6:9: warning: missing terminating " character
6 | printf("
| ^
foo.c:6:9: error: missing terminating " character
foo.c:13:2: error: expected ')' before numeric constant
13 | 4
| ^
| )
14 | 0 0 1
| ~
foo.c:30:6: warning: missing terminating " character
30 | ");
| ^
foo.c:30:6: error: missing terminating " character
30 | ");
| ^~~
foo.c:13:1: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
13 | 4
| ^
| |
| int
In file included from /usr/include/stdio.h:867,
from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:105:32: note: expected 'const char * restrict' but argument is of type 'int'
105 | printf (const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
foo.c:32:1: warning: format not a string literal and no format arguments [-Wformat-security]
32 | }
| ^
foo.c:31:15: error: expected ';' before '}' token
31 | return 0;
| ^
| ;
32 | }
| ~
foo.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
5 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务