fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. printf("How many steps did it take for the chicken to cross the road, and what was on the other side?/n");
  6.  
  7. int float1 = chicken;
  8. int float2 = 6;
  9.  
  10. crossroad(float1, float2);
  11.  
  12. return 0;
  13. }
  14.  
  15. void crossroad(float1, float 2);{
  16. KFC = float1 + float2;
  17. printf("The %f crossed the road, in %f steps for %f/n",float1,float2,KFC);
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:7:14: error: ‘chicken’ undeclared (first use in this function)
 int float1 = chicken;
              ^~~~~~~
prog.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
prog.c:10:1: warning: implicit declaration of function ‘crossroad’ [-Wimplicit-function-declaration]
 crossroad(float1, float2);
 ^~~~~~~~~
prog.c: At top level:
prog.c:15:24: error: expected ‘)’ before ‘float’
 void crossroad(float1, float 2);{
                        ^~~~~
prog.c:15:33: error: expected identifier or ‘(’ before ‘{’ token
 void crossroad(float1, float 2);{
                                 ^
stdout
Standard output is empty