Main.c: In function 'main': Main.c:7:2: error: expected ';' before 'printf' printf("%d\n",s); ^ Main.c:4:12: warning: variable 's' set but not used [-Wunused-but-set-variable] int a, b, s; ^ Main.c:5:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a,&b); ^