Problem contestcalc
User isaackhong
Submission Time 2023-01-11 15:23:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:34:16: error: ‘avgname’ was not declared in this scope; did you mean ‘avgno’?
34 | cin >> avgname;
| ^~~~~~~
| avgno
contestcalc.cpp:40:25: error: ‘scores’ was not declared in this scope; did you mean ‘score’?
40 | for (int i = 0; i < scores.size(); i++){
| ^~~~~~
| score
contestcalc.cpp:46:23: error: no match for ‘operator<’ (operand types are ‘int’ and ‘std::vector<std::__cxx11::basic_string<char> >’)
46 | for (int i = 0; i < namelist; i++){
| ~ ^ ~~~~~~~~
| | |
| int std::vector<std::__cxx11::basic_string<char> >
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,<