prog.c: In function ‘main’:
prog.c:20:2: error: ‘hypotenuse’ undeclared (first use in this function)
hypotenuse = sqrt(base^2 + height^2);
^~~~~~~~~~
prog.c:20:2: note: each undeclared identifier is reported only once for each function it appears in
prog.c:20:24: error: invalid operands to binary ^ (have ‘float’ and ‘float’)
hypotenuse = sqrt(base^2 + height^2);
^~~~~~~~~~~
prog.c:22:2: error: ‘perimeter’ undeclared (first use in this function)
perimeter = base + height + hypotenuse;
^~~~~~~~~
prog.c:10:22: warning: unused variable ‘area’ [-Wunused-variable]
float base, height, area;
^~~~