Submission #7992848
Source Code Expand
int main() { int intd[3]; char chars[5]; scanf("%d%d",intd,intd[1]); scanf("%d",intd[2]); scanf("%s",chars); printf("%d %s",intd[0] + intd[1] + int[2],chars); return 0; }
Submission Info
Submission Time | |
---|---|
Task | PracticeA - Welcome to AtCoder |
User | pyonkiti |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 209 Byte |
Status | CE |
Compile Error
./Main.c: In function ‘main’: ./Main.c:5:2: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] scanf("%d%d",intd,intd[1]); ^ ./Main.c:5:2: warning: incompatible implicit declaration of built-in function ‘scanf’ ./Main.c:5:2: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ ./Main.c:5:8: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=] scanf("%d%d",intd,intd[1]); ^ ./Main.c:6:10: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d",intd[2]); ^ ./Main.c:9:4: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] printf("%d %s",intd[0] + intd[1] + int[2],chars); ^ ./Main.c:9:4: warning: incompatible implicit declaration of built-in function ‘printf’ ./Main.c:9:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ ./Main.c:9:39: error: expected expression before ‘int’ printf("%d %s...