fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. //Deklaration
  6. int Gewicht;
  7. float Groeße;
  8. float BMI;
  9.  
  10. //Eingabe
  11. scanf("%d %f", &Gewicht, &Groeße);
  12.  
  13. BMI = Gewicht/(Groeße*Groeße);
  14.  
  15.  
  16. //Ausgabe:
  17. printf("Der Body-Mass-Index:\n");
  18. printf("%f=%d/(%f*f%)\n",BMI,Gewicht,Groeße,Groeße);
  19. return 0;
  20. }
  21.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
65 1.7
compilation info
prog.c: In function 'main':
prog.c:7:2: error: stray '\303' in program
  float Groeße;
  ^
prog.c:7:2: error: stray '\237' in program
prog.c:7:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'e'
  float Groeße;
              ^
prog.c:7:14: error: 'e' undeclared (first use in this function)
prog.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
prog.c:11:2: error: stray '\303' in program
  scanf("%d %f", &Gewicht, &Groeße);
  ^
prog.c:11:2: error: stray '\237' in program
prog.c:11:28: error: 'Groe' undeclared (first use in this function)
  scanf("%d %f", &Gewicht, &Groeße);
                            ^
prog.c:11:34: error: expected ')' before 'e'
  scanf("%d %f", &Gewicht, &Groeße);
                                  ^
prog.c:13:2: error: stray '\303' in program
  BMI = Gewicht/(Groeße*Groeße);
  ^
prog.c:13:2: error: stray '\237' in program
prog.c:13:23: error: expected ')' before 'e'
  BMI = Gewicht/(Groeße*Groeße);
                       ^
prog.c:13:23: error: stray '\303' in program
prog.c:13:23: error: stray '\237' in program
prog.c:18:2: error: stray '\303' in program
  printf("%f=%d/(%f*f%)\n",BMI,Gewicht,Groeße,Groeße);
  ^
prog.c:18:2: error: stray '\237' in program
prog.c:18:45: error: expected ')' before 'e'
  printf("%f=%d/(%f*f%)\n",BMI,Gewicht,Groeße,Groeße);
                                             ^
prog.c:18:45: error: stray '\303' in program
prog.c:18:45: error: stray '\237' in program
stdout
Standard output is empty