Submission #2099650
Source Code Expand
#include <stdio.h> #include <string.h> int main(int argc, char **argv) { char a[16]; scanf("%c",a); strcpy(s, "pp"); strcat(a,s); printf("%c\n", a); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - ハンドルネーム |
User | shinchan |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 189 Byte |
Status | CE |
Compile Error
./Main.c: In function ‘main’: ./Main.c:8:12: error: ‘s’ undeclared (first use in this function) strcpy(s, "pp"); ^ ./Main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in ./Main.c:10:12: warning: format ‘%c’ expects argument of type ‘int’, but argument 2 has type ‘char *’ [-Wformat=] printf("%c\n", a); ^ ./Main.c:7:2: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c",a); ^