0_0_20895966_29522.cpp: In function 'void Solve()': 0_0_20895966_29522.cpp:45:33: error: 'sort' was not declared in this scope sort(cnt[i]+1,cnt[i]+1+m,mycmp); ^