44 10 [Error] incompatible types in assignment of 'int' to 'float [5]'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[Error][Error][Error][Error][Error][Error][Error][Error][Error][Error][Error]
#include<iostream>
#include<string>
using namespace std;
cgrade = mgrade[i]*(1/3) + fgrade[i]*(2/3);
should be cgrade[i]
you also need to static_cast<float> the right hand side numerators, otherwise integer division would just give (truncated) integer results: