Problem oranges2
User ChickenCoder
Submission Time 2023-09-09 22:23:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

oranges2.cpp: In function ‘long long int answer(int, int)’:
oranges2.cpp:44:33: error: invalid types ‘int[int]’ for array subscript
44 | if (in_subtree(d, parent[sn][i])) continue;
| ^
oranges2.cpp:50:33: error: invalid types ‘int[int]’ for array subscript
50 | if (in_subtree(s, parent[dn][i])) continue;
| ^