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