prog.c: In function ‘FraInfo’:
prog.c:19:4: error: expected ‘;’ before ‘a’
a+= i;
^
prog.c:41:11: warning: ‘return’ with a value, in function returning void
}return 1;
^
prog.c:10:6: note: declared here
void FraInfo(int dividend,int divisor,Fra m,Fra n) {
^~~~~~~
prog.c:14:6: warning: unused variable ‘b’ [-Wunused-variable]
int b = 1;
^
prog.c: At top level:
prog.c:43:2: error: expected identifier or ‘(’ before ‘if’
if(j>0){
^~
prog.c:48:2: error: expected identifier or ‘(’ before ‘}’ token
}
^
prog.c:50:8: error: ‘i’ undeclared here (not in a function)
Fra m=i / j;
^
prog.c:50:12: error: ‘j’ undeclared here (not in a function)
Fra m=i / j;
^
prog.c:51:11: error: ‘a’ undeclared here (not in a function)
Fra n=a / b;
^
prog.c:51:15: error: ‘b’ undeclared here (not in a function)
Fra n=a / b;
^
prog.c:52:1: error: expected identifier or ‘(’ before ‘}’ token
}
^