static bool cmp1(vector<int>a, vector<int>b) { return a[0] < b[0]; } vector<int> getWakeLockContrib(vector<vector<int> >& wakeLock) { // write code here unordered_map<int, int>map1; for (int i = 0; i < wakeLock.size(); i++) { ...