prog.c: In function ‘main’:
prog.c:6:7: error: conflicting types for ‘sqrt’
float sqrt(float d);
^~~~
In file included from /usr/include/features.h:364:0,
from /usr/include/stdio.h:27,
from prog.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:156:1: note: previous declaration of ‘sqrt’ was here
__MATHCALL (sqrt,, (_Mdouble_ __x));
^
prog.c:9:12: error: ‘then’ undeclared (first use in this function)
if(d < 0) then
^~~~
prog.c:9:12: note: each undeclared identifier is reported only once for each function it appears in
prog.c:11:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(d = 0) then
^~
prog.c:12:2: error: expected ‘;’ before ‘rslt1’
rslt1 = (-b + sqrt(d) / (2 * a));
^~~~~
prog.c:16:2: error: expected ‘;’ before ‘rslt1’
rslt1 = (-b + sqrt(d) / (2 * a));
^~~~~