Problem | potatosalad |
---|---|
User | bestatchinesechess |
Submission Time | 2025-02-17 22:32:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:18:10: error: no match for ‘operator+=’ (operand types are ‘std::vector<int>’ and ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’})
18 | n_mass += n_mass[i];
potatosalad.cpp:20:29: error: expected ‘;’ before ‘sum_m’
20 | max_m = max(max_m, sum_m)
| ^
| ;
21 | sum_m -= n_mass[n_start];
| ~~~~~