#include #include #include #include int main() { std::cout << "Enter n: "; unsigned n { }; std::cin >> n; std::cout << "Enter values: "; std::vector values { }; for (unsigned i { 0 }; i < n; ++i) { int value { }; std::cin >> value; values.push_back(value); } std::sort(values.begin(), values.end()); int target { }; std::cout << "Enter target sum: "; std::cin >> target; std::vector> sums { }; // Skriv din kod här if (sums.empty()) { std::cout << "No elements sum up to " << target << std::endl; } for (auto [i, j] : sums) { std::cout << values[i] << " + " << values[j] << " = " << target << std::endl; } }