Who said you needed a switch statement? The values ascribed to each “case” have to be those for the variable in switch(variable). But score doesn’t take the values A, B, C etc. Your syntax on the lines starting “case” is also non-c++.
Use an if ... else if .. chain, if deciding on the basis of score.