This is my code:

```
class Solution {
public:
vector<int> twoSum(vector<int> &numbers, int target) {
int index1, index2, j;
j = 1;
vector<int> solution(2);
for (int i=0; i<=numbers.size(); i++) {
if (numbers[i] + numbers[i+j] == target) {
index1 = i + 1;
index2 = j + 1;
solution.push_back(index1);
solution.push_back(index2);
return solution;
}
else {
j++;
}
}
}
};
```