Presumably, the error message points you to this line
for (index=0, index<10, index=index+1)
You’ve written ,
where you meant ;
Once you’ve fixed that, the first error message will probably point you at or near
switch (grades[index]);
where you’ve got a rogue ;
Then it will point you at the scrambled if...else
formatting in set_units
, which should look something like
if (...) {
...
} else if (...) {
...
} else {
...
}
7
solved An awful lot of compiler errors [closed]