fork download
  1. // C code
  2. // This program will sum two integer numbers to yield a third integer number.
  3. // Developer: Faculty CMIS102
  4. // Date: Jan 31, XXXX
  5.  
  6. #include <stdio.h>
  7. int main ()
  8. {
  9. /* variable definition: */
  10. float f_var: a, b, c;
  11.  
  12. /* variable initialization */
  13. a = 10;
  14. b = 2;
  15. c = a / b;
  16. printf("Integers (a,b) and qoutient (c) are : %d,%d,%d \n", a,b,c);
  17. return 0;
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:10:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
   float f_var: a, b, c;
              ^
prog.c:10:14: error: expected expression before ‘:’ token
prog.c:13:3: error: ‘a’ undeclared (first use in this function)
   a = 10;
   ^
prog.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
prog.c:14:3: error: ‘b’ undeclared (first use in this function)
   b = 2;
   ^
prog.c:15:3: error: ‘c’ undeclared (first use in this function)
   c = a / b;
   ^
stdout
Standard output is empty