Problem oranges2
User wrizz69
Submission Time 2024-12-18 16:15:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

oranges2.cpp: In function ‘long long int query(long long int, long long int)’:
oranges2.cpp:43:34: error: ‘s’ was not declared in this scope
43 | maxw = max(maxw, maxedge[s][i]);
| ^
oranges2.cpp:51:27: error: ‘D’ was not declared in this scope
51 | if(up[S][i] != up[D][i]) {
| ^
oranges2.cpp:53:30: error: ‘maxege’ was not declared in this scope; did you mean ‘maxedge’?
53 | maxw = max(maxw, maxege[D][i]);
| ^~~~~~
| maxedge