fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. return 0;
  6. }
  7. #include <stdio.h> int main ()
  8. {
  9. /* variable definition: */
  10. int a, b, c; float f, g1, g2, h1, h2;
  11. /* variable initialization */
  12. a = 10; b = 20;
  13. f = 75.0; g1 = 3.0;
  14. g2 = 0.0;
  15.  
  16. // Calculate sum of a and b c = a + b;
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:7:20: warning: extra tokens at end of #include directive
 #include <stdio.h> int main ()
                    ^~~
prog.c:8:1: error: expected identifier or ‘(’ before ‘{’ token
 {
 ^
stdout
Standard output is empty