```
class Solution {
public:
vector<int> twoSum(vector<int> &numbers, int target) {
map<int, bool> m;
map<int, int> indexMap;
for (int i = 0; i<numbers.size(); ++i)
{
if (numbers[i]>target) continue;
if (m.count(target - numbers[i]) > 0)
{
vector<int> v;
v.push_back(indexMap[target - numbers[i]] + 1);
v.push_back(i + 1);
return v;
}
else
{
m[numbers[i]] = true;
indexMap[numbers[i]] = i;
}
}
}
};
```

Runtime error for input [5,75,25],100

But it runs just fine in VC++