prog.c: In function ‘main’:
prog.c:38:10: warning: left-hand operand of comma expression has no effect [-Wunused-value]
for(j<=n,j++);
^
prog.c:38:14: error: expected ‘;’ before ‘)’ token
for(j<=n,j++);
^
prog.c:38:14: error: expected expression before ‘)’ token
prog.c:38:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(j<=n,j++);
^~~
prog.c:39:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
{
^
prog.c:41:23: error: ‘i’ undeclared (first use in this function)
res=calc_func(x,eps,i);
^
prog.c:41:23: note: each undeclared identifier is reported only once for each function it appears in