Vazifani zanjirlar yoki rekursiya ishlatmasdan bajarish uchun siz C ++ standart kutubxona funksiyalaridan foydalanishingiz mumkin, shu jumladan `std::iota`, `std::transform` va `std::accumulate` zanjirlarni almashtirish uchun: ``c #include <iostream> #include <numeric> #include <vector> #include <cmath> #include <algorithm> powers intum ((int n, int k) { std::vector<int> powers `n); std::iota(powers.begin), powers.end), powers.end), 1); std::transform(powers.begin.), powers.end., powers.begin.), [kint] i { return(std::doublew), doublew), doublew); }
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence