Problem | deforestation |
---|---|
User | popperoni |
Submission Time | 2023-11-27 16:32:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
deforestation.cpp: In function ‘int main()’:
deforestation.cpp:13:9: error: invalid types ‘int[int]’ for array subscript
13 | b[0][i] = c;
| ^
deforestation.cpp:16:10: error: invalid types ‘int[int]’ for array subscript
16 | b[j][i] = (c + j*d);
| ^
deforestation.cpp:27:16: error: invalid types ‘int[long long int]’ for array subscript
27 | if (b[i][*it] < max) {
| ^
deforestation.cpp:28:20: error: invalid types ‘int[__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type {aka long long int}]’ for array subscript
28 | max = b[i][a[j]];
| ^