Problem orchard
User justin271828
Submission Time 2024-07-28 16:10:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

orchard.cpp: In function ‘int main()’:
orchard.cpp:27:40: error: incompatible types in assignment of ‘std::vector<int>’ to ‘int [(m + 1)]’
27 | for (int i = 0; i <= m; i++) arr[i] = v;
| ^
orchard.cpp:44:31: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
44 | for (int i = 0; i < diff[j].size; i++) {
| ~~~~~~~~^~~~
| ()