Submission #6000634
Source Code Expand
int main(void){ int a; int b; int c; scanf("%d", &a); scanf("%d", &b); a-b = c; printf("%d", c); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 積雪深差 |
User | kirshenbaum18 |
Language | C (GCC 5.4.1) |
Score | 0 |
Code Size | 156 Byte |
Status | CE |
Compile Error
./Main.c: In function ‘main’: ./Main.c:7:4: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] scanf("%d", &a); ^ ./Main.c:7:4: warning: incompatible implicit declaration of built-in function ‘scanf’ ./Main.c:7:4: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ ./Main.c:9:8: error: lvalue required as left operand of assignment a-b = c; ^ ./Main.c:10:4: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] printf("%d", c); ^ ./Main.c:10:4: warning: incompatible implicit declaration of built-in function ‘printf’ ./Main.c:10:4: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’