下面C++代码执行后的输出是 ( ) 。
#include
using namespace std;
int main() {
vector nums = {2, 7, 11, 15};
int target = 9;
int n = nums.size();
bool found = false;
for (int i = 0; i < n; ++i) {
for (int j = i + 1; j < n; ++j) {
if (nums[i] + nums[j] == target) {
cout << "Indices: " << i << ", " << j;
found = true;
break;
}
}
if (found) break;
}
if (!found) cout << "No solution found";
return 0;
}