fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main(void) {
  5.  
  6. {
  7.  
  8. double a, c, l; //Gesamtlänge, Abstand Meer, Abstand Land
  9.  
  10. }
  11.  
  12. /*maximale Lauflänge berechnen*/
  13. l = (a^2 + c^2)^0.5;
  14.  
  15. return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:8:15: warning: unused variable ‘l’ [-Wunused-variable]
  double a, c, l; //Gesamtlänge, Abstand Meer, Abstand Land
               ^
prog.c:8:12: warning: unused variable ‘c’ [-Wunused-variable]
  double a, c, l; //Gesamtlänge, Abstand Meer, Abstand Land
            ^
prog.c:8:9: warning: unused variable ‘a’ [-Wunused-variable]
  double a, c, l; //Gesamtlänge, Abstand Meer, Abstand Land
         ^
prog.c:13:2: error: ‘l’ undeclared (first use in this function)
  l = (a^2 + c^2)^0.5;
  ^
prog.c:13:2: note: each undeclared identifier is reported only once for each function it appears in
prog.c:13:7: error: ‘a’ undeclared (first use in this function)
  l = (a^2 + c^2)^0.5;
       ^
prog.c:13:13: error: ‘c’ undeclared (first use in this function)
  l = (a^2 + c^2)^0.5;
             ^
stdout
Standard output is empty