0_0_17249499_15183.cpp: In function 'int main()': 0_0_17249499_15183.cpp:37:31: error: 'sort' was not declared in this scope sort(seg, seg + m, cmp); ^