| Problem | pushups |
|---|---|
| User | j0ashhh |
| Submission Time | 2025-11-12 16:20:06 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
pushups.cpp: In function ‘int main()’:
pushups.cpp:10:8: error: overloaded function with no contextual type information
10 | max = 0;
| ^
pushups.cpp:12:16: 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>’
12 | if(divsum[i] > max){
pushups.cpp:13:18: error: overloaded function with no contextual type information
13 | max = divsum[i];
| ^
pushups.cpp:15:15: error: cannot resolve overloaded function ‘max’ based on conversion to type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
15 | divsum[i] = max;
| ^~~