#include<stdio.h> main() { int alb; scanf("%d",&a); scanf("%d",&b); printf("%d",a+b); } /* Main.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int] main() ^~~~ Main.c: In function 'main': Main.c:5:15: error: 'a' undeclared (first use in this function) scanf("%d",&a); ^ Main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in Main.c:6:15: error: 'b' undeclared (first use in this function) scanf("%d",&b); ^ Main.c:4:7: warning: unused variable 'alb' [-Wunused-variable] int alb; ^~~ */ |
Double click to view unformatted code.