for(int i = 0; i < A.size(); i++){ if(mp.find(A[i]) == mp.end()){ if(mp.find(B-A[i]) == mp.end()) mp[B-A[i]] = i; }
Why