prog.c:3:1: error: expected function body after function declarator
Int a=2;
^
prog.c:4:1: error: unknown type name 'Int'; did you mean 'int'?
Int b=3;
^~~
int
prog.c:5:1: error: unknown type name 'Int'; did you mean 'int'?
Int c=4;
^~~
int
prog.c:6:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
d=a+b+c;
^
prog.c:6:3: error: use of undeclared identifier 'a'
d=a+b+c;
^
prog.c:7:8: error: expected parameter declarator
Printf("the addition is d=%d",d);
^
prog.c:7:8: error: expected ')'
prog.c:7:7: note: to match this '('
Printf("the addition is d=%d",d);
^
prog.c:7:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
Printf("the addition is d=%d",d);
^
prog.c:8:1: error: extraneous closing brace ('}')
}
^
2 warnings and 7 errors generated.