#include <stdio.h> #include <math.h> int main(void) { perimeter = baseA + baseB + height + return 0; }
Standard input is empty
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; ~~~~~~
Standard output is empty