/in/foo.cc: In function 'int main()':
/in/foo.cc:4:5: error: 'cin' was not declared in this scope
cin >> n;
^~~
/in/foo.cc:6:5: error: 'StudentScore' was not declared in this scope
StudentScore students[n];
^~~~~~~~~~~~
/in/foo.cc:8:5: error: 'string' was not declared in this scope
string highestName;
^~~~~~
/in/foo.cc:12:16: error: expected ';' before 'name'
string name;
^~~~
/in/foo.cc:18:16: error: 'name' was not declared in this scope
cin >> name >> avgScore >> classmateScore >> isClassOfficialRaw >> isWestStudentsRaw >> paperCount;
^~~~
/in/foo.cc:41:13: error: 'highestName' was not declared in this scope
highestName = name;
^~~~~~~~~~~
/in/foo.cc:46:5: error: 'cout' was not declared in this scope
cout << highestName << endl << highestPrice << endl << totalPrice;
^~~~
/in/foo.cc:46:13: error: 'highestName' was not declared in this scope
cout << highestName << endl << highestPrice << endl << totalPrice;
^~~~~~~~~~~
/in/foo.cc:46:28: error: 'endl' was not declared in this scope
cout << highestName << endl << highestPrice << endl << totalPrice;
^~~~