It's all there in the errors:
Code:
1>------ Build started: Project: CProg4, Configuration: Debug Win32 ------
1>Compiling...
1>CProg4.cpp
1>cprog4.cpp(43) : error C2297: '+=' : illegal, right operand has type 'int [7]'
1>cprog4.cpp(43) : error C2440: '+=' : cannot convert from 'int [7]' to 'double'
1>cprog4.cpp(48) : error C2297: '+=' : illegal, right operand has type 'int [7]'
1>cprog4.cpp(48) : error C2440: '+=' : cannot convert from 'int [7]' to 'double'
1>Build log was saved at "????"
1>CProg4 - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Specifically it points to these lines:
Code:
int scores[max_student][max_subject];
...
for(i=0;i<N;i++)
Average+=scores[i];
...
for(j=0;j<M;j++)
Average+=scores[j];
Based on what "scores" is it should be obvious.