**目前規劃**
一直到現在才知道vector這個語法~~
#題目敘述:
You may assume that each input would have exactly one solution, and you may not use the same element twice.
You can return the answer in any order.
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
int n=nums.size();
int ans;
vector<int> output(2);
for(int i=0;i<n;i++){
ans=target-nums[i];
for(int j=i+1;j<n;j++){
if(ans==nums[j]){
output ={i,j};
}
}
}
return output;
}
};