fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main(void) {
  4. perimeter = baseA + baseB + height +
  5. sqrt (height*height + (baseA – baseB)*(baseA – baseB))
  6. return 0;
  7. }
  8.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:4:2: error: ‘perimeter’ undeclared (first use in this function)
  perimeter = baseA + baseB + height +
  ^~~~~~~~~
prog.c:4:2: note: each undeclared identifier is reported only once for each function it appears in
prog.c:4:14: error: ‘baseA’ undeclared (first use in this function)
  perimeter = baseA + baseB + height +
              ^~~~~
prog.c:4:22: error: ‘baseB’ undeclared (first use in this function)
  perimeter = baseA + baseB + height +
                      ^~~~~
prog.c:4:30: error: ‘height’ undeclared (first use in this function)
  perimeter = baseA + baseB + height +
                              ^~~~~~
prog.c:5:31: error: stray ‘\342’ in program
  sqrt (height*height + (baseA – baseB)*(baseA – baseB))
                               ^
prog.c:5:32: error: stray ‘\200’ in program
  sqrt (height*height + (baseA – baseB)*(baseA – baseB))
                                ^
prog.c:5:33: error: stray ‘\223’ in program
  sqrt (height*height + (baseA – baseB)*(baseA – baseB))
                                 ^
prog.c:5:30: error: expected ‘)’ before ‘baseB’
  sqrt (height*height + (baseA – baseB)*(baseA – baseB))
                        ~     ^    ~~~~~
                              )
prog.c:5:49: error: stray ‘\342’ in program
  sqrt (height*height + (baseA – baseB)*(baseA – baseB))
                                                 ^
prog.c:5:50: error: stray ‘\200’ in program
  sqrt (height*height + (baseA – baseB)*(baseA – baseB))
                                                  ^
prog.c:5:51: error: stray ‘\223’ in program
  sqrt (height*height + (baseA – baseB)*(baseA – baseB))
                                                   ^
prog.c:5:48: error: expected ‘)’ before ‘baseB’
  sqrt (height*height + (baseA – baseB)*(baseA – baseB))
                                          ~     ^    ~~~~~
                                                )
prog.c:5:60: error: expected ‘;’ before ‘return’
  sqrt (height*height + (baseA – baseB)*(baseA – baseB))
                                                            ^
                                                            ;
  return 0;
  ~~~~~~                                                     
stdout
Standard output is empty