Submission #890770
Source Code Expand
int main(){ scanf("%s",s); printf("%c%c%c%c %c%c%c%c%c%c%c%c",s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11],s[12]); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - CODEFESTIVAL 2016 |
User | simplex3 |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 156 Byte |
Status | CE |
Compile Error
./Main.c: In function ‘main’: ./Main.c:3:2: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] scanf("%s",s); ^ ./Main.c:3:2: warning: incompatible implicit declaration of built-in function ‘scanf’ ./Main.c:3:2: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ ./Main.c:3:13: error: ‘s’ undeclared (first use in this function) scanf("%s",s); ^ ./Main.c:3:13: note: each undeclared identifier is reported only once for each function it appears in ./Main.c:4:2: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] printf("%c%c%c%c %c%c%c%c%c%c%c%c",s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9],s[10],s[11],s[12]); ^ ./Main.c:4:2: warning: incompatible implicit declaration of built-in function ‘printf’ ./Main.c:4:2: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’