Problem | area_noi |
---|---|
User | Joashhh |
Submission Time | 2023-09-09 15:01:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area_noi.cpp: In function ‘int main()’:
area_noi.cpp:12:8: error: overloaded function with no contextual type information
12 | max = 0;
| ^
area_noi.cpp:14:13: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator>’
14 | if(arr[i] > max){
| ~~~~~~~^~~~~
area_noi.cpp:15:15: error: overloaded function with no contextual type information
15 | max = arr[i];
| ^
area_noi.cpp:18:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
18 | cout << max;
| ~~~~~^~~~~~
In file included from /usr/include/c++/9/iostream:39,
from area_noi.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>