Problem | deforestation |
---|---|
User | Daniel0liong |
Submission Time | 2025-03-18 14:29:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
deforestation.cpp: In function ‘bool check(long long int, long long int*, long long int*)’:
deforestation.cpp:11:8: error: request for member ‘push_back’ in ‘time’, which is of non-class type ‘long long int [n]’
11 | time.push_back(ceil(tt/growth[i]));//((t-tree[i])/growth[i]);
| ^~~~~~~~~
deforestation.cpp: In function ‘int main()’:
deforestation.cpp:30:3: error: ‘mid’ was not declared in this scope; did you mean ‘min’?
30 | mid=min+(max-min+1)/2;
| ^~~
| min