Problem | treecutting |
---|---|
User | chisim |
Submission Time | 2023-02-15 00:09:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
treecutting.cpp: In function ‘int main()’:
treecutting.cpp:82:21: error: invalid types ‘int[int]’ for array subscript
82 | int dist = dist[j] - dist[i];
| ^
treecutting.cpp:82:31: error: invalid types ‘int[int]’ for array subscript
82 | int dist = dist[j] - dist[i];
| ^
treecutting.cpp:95:7: error: ‘maxDist’ was not declared in this scope
95 | if (maxDist > maxmax) maxmax = dist;
| ^~~~~~~