Problem parallelogramisation2
User rachel9teh
Submission Time 2025-06-17 11:16:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

parallelogramisation2.cpp: In function ‘int main()’:
parallelogramisation2.cpp:16:50: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator>’
16 | } else if (arr[i]*arry[j]-arr[j]*arry[i] > max)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
parallelogramisation2.cpp:18:9: error: expected primary-expression before ‘}’ token
18 | }
| ^
parallelogramisation2.cpp:19:14: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
19 | cout << max;
| ~~~~~^~~~~~
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x