Problem | finalday |
---|---|
User | Pranav |
Submission Time | 2024-12-09 11:50:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
finalday.cpp: In function ‘int main()’:
finalday.cpp:17:22: error: expected ‘;’ before ‘)’ token
17 | for (int i =0;i<i++){
| ^
| ;
finalday.cpp:24:18: error: cannot convert ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ to ‘int’ in assignment
24 | ma= max_element(sums.begin(), sums.end());
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >
finalday.cpp:25:18: error: invalid operands of types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} and ‘<unresolved overloaded function type>’ to binary ‘operator>’
25 | if (sums[i]+300>max){