fork download
  1. #include<stdio.h>
  2. Main()
  3. Int a=2;
  4. Int b=3;
  5. Int c=4;
  6. d=a+b+c;
  7. Printf("the addition is d=%d",d);
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2
3
4
compilation info
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.
stdout
Standard output is empty