Problem citymapping
User Xiaoyang
Submission Time 2025-03-03 23:03:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

citymapping.cpp: In function ‘void find_roads(int, int, int*, int*, int*)’:
citymapping.cpp:46:10: error: ‘get_distance’ was not declared in this scope
46 | ll tmp=get_distance(i,1);
| ^~~~~~~~~~~~
citymapping.cpp:54:10: error: ‘get_distance’ was not declared in this scope
54 | dep[i]=get_distance(rt,i);
| ^~~~~~~~~~~~
citymapping.cpp:68:40: error: ‘get_distance’ was not declared in this scope
68 | ll extra=(dep[h]+dep[x]-2*dep[curr]-get_distance(h,x))/2; //draw diagram to make sense of this formula
| ^~~~~~~~~~~~