Submission #4669619
Source Code Expand
#include<stdio.h> int main(void){ char s[30]; int a=0; scanf("%s",&s); s[3]='8'; printf('%s's); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Already 2018 |
User | kanadesanma |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 152 Byte |
Status | CE |
Compile Error
./Main.c: In function ‘main’: ./Main.c:9:11: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[30]’ [-Wformat=] scanf("%s",&s); ^ ./Main.c:11:12: warning: multi-character character constant [-Wmultichar] printf('%s's); ^ ./Main.c:11:16: error: expected ‘)’ before ‘s’ printf('%s's); ^ ./Main.c:11:12: warning: passing argument 1 of ‘printf’ makes pointer from integer without a cast [-Wint-conversion] printf('%s's); ^ In file included from /usr/include/stdio.h:937:0, from ./Main.c:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:102:1: note: expected ‘const char * restrict’ but argument is of type ‘int’ printf (const char *__restrict __fmt, ...) ^ ./Main.c:11:16: warning: format not a string literal and no format arguments [-Wformat-security] printf('%s's); ^ ./Main.c:9:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-W...