0_0_36345978_16703.cpp: In function 'void solve()': 0_0_36345978_16703.cpp:34:32: error: 'cmp' was not declared in this scope sort(seg + 1, seg + m + 1, cmp); ^