Problem eatingparallelograms
User LimCheeHann
Submission Time 2026-05-03 20:08:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eatingparallelograms.cpp: In function ‘int main()’:
eatingparallelograms.cpp:12:6: error: overloaded function with no contextual type information
12 | max=0;
| ^
eatingparallelograms.cpp:16:11: error: invalid operands of types ‘long long int’ and ‘<unresolved overloaded function type>’ to binary ‘operator>’
16 | if(input>max){
| ~~~~~^~~~
eatingparallelograms.cpp:17:8: error: overloaded function with no contextual type information
17 | max=input;
| ^~~~~
eatingparallelograms.cpp:22:10: error: invalid operands of types ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’} and ‘<unresolved overloaded function type>’ to binary ‘operator==’
22 | if(S[i]==max){
eatingparallelograms.cpp:29:10: error: invalid operands of types ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_typ