#include<stdio.h> void main() { int a,b,sum; scanf("%d",&a); scanf("%d",&b); sum=a+b; printf("%d",sum); ) /* Main.c:2:6: warning: return type of 'main' is not 'int' [-Wmain] void main() ^~~~ Main.c: In function 'main': Main.c:9:3: error: expected statement before ')' token ) ^ Main.c:9:3: error: expected declaration or statement at end of input */ |
Double click to view unformatted code.