Start by looking at your code, and the errors messages - they are pretty good.
|10|warning: if statement has empty body [-Wempty-body]|
|10|note: put the semicolon on a separate line to silence this warning|
The |10| bits means: "Source file, line 10". I.e, the problem is on this line:
if (ave<60);
And sure enough, your
if
condition ends with a semicolon, so it ends on that line. It's like you wrote:
if (ave<60) DoNothing();
printf("Failed");
The "printf" statement will always be executed.
The other error is spurious, and caused by the first - it can't find a matching
if
statement for the
else
because your semicolon terminates the
if
early.
Check your
#include
s as well - they don't show here (or in the text you posted) but I'd guess they have <io.h> or similar with them.
And please, don't tag questions as "Errors" - use the language at least "C" - that way only people who know the language and can help you will read it.