Problem maxavg
User dooweidde
Submission Time 2025-07-16 15:21:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

maxavg.cpp:12:5: error: ‘max_’ does not name a type
12 | max_ = 0;
| ^~~~
maxavg.cpp: In function ‘int main()’:
maxavg.cpp:25:19: error: invalid operands of types ‘long long int’ and ‘<unresolved overloaded function type>’ to binary ‘operator>’
25 | if (hold > max){
| ~~~~~^~~~~
maxavg.cpp:26:14: error: ‘max_’ was not declared in this scope
26 | max_ = hold;
| ^~~~
maxavg.cpp:29:14: error: ‘max_’ was not declared in this scope
29 | cout << max_;
| ^~~~