foo.cc: In function ‘int main()’:
foo.cc:24:17: error: ‘let’ was not declared in this scope
24 | let curBonus = 0;
| ^~~
foo.cc:25:49: error: ‘curBonus’ was not declared in this scope
25 | if (score1 > 80 && score3 >= 1) curBonus += 8000;
| ^~~~~~~~
foo.cc:26:49: error: ‘curBonus’ was not declared in this scope
26 | if (score1 > 85 && score2 > 80) curBonus += 4000;
| ^~~~~~~~
foo.cc:27:34: error: ‘curBonus’ was not declared in this scope
27 | if (score1 > 90) curBonus += 2000;
| ^~~~~~~~
foo.cc:28:49: error: ‘curBonus’ was not declared in this scope
28 | if (score1 > 85 && xibu == 'Y') curBonus += 1000;
| ^~~~~~~~
foo.cc:29:50: error: ‘curBonus’ was not declared in this scope
29 | if (score2 > 80 && ganbu == 'Y') curBonus += 850;
| ^~~~~~~~
foo.cc:30:21: error: ‘curBonus’ was not declared in this scope
30 | if (curBonus > maxBonus) {
| ^~~~~~~~
foo.cc:34:31: error: ‘curBonus’ was not declared in this scope
34 | totalBonus += curBonus;
| ^~~~~~~~