Problem worldmap
User ngyupeng6
Submission Time 2025-08-12 18:13:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

worldmap.cpp: In function ‘void dfs(int, int)’:
worldmap.cpp:50:5: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
50 | sort(child[x].begin(), child[x].end(), [&](int a, int b) { return maxDepth[a] > maxDepth[b]; });
| ^~~~
| qsort