Problem | maxavg |
---|---|
User | dooweidde |
Submission Time | 2025-07-16 15:21:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
maxavg.cpp:12:5: error: ‘max’ does not name a type; did you mean ‘fmax’?
12 | max = 0;
| ^~~
| fmax
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:20: error: overloaded function with no contextual type information
26 | max = hold;
| ^~~~
maxavg.cpp:29:11: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
29 | cout << max;
| ~~~~~^~~~~~
In file included from /usr/include/c++/9/iostream:39,
from maxavg.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostre