Bu yerda funksiya: ```cpp #include <iostream> #include <cmath> nomlar maydoni std; int sum_of_powers ((int n, int k) { int sum = 0; sum = (n*(n+1)) / 2; // 1 dan n gacha bo'lgan tabiiy sonlar yig'indisi int sum_of_powers = pow ((sum, k); // 1 dan n gacha bo'lgan kuchlar yig'indisi sum_of_powers; } int main ((() { int n, k; cout << "Ikkita musbat butun sonlarni n va k kiriting: "; cin >> n >> k; int natijasi = sum_of_powers ((n, k); cout << " 1 k dan n^k gacha bo'lgan sonlar yig'indisi: " << result endl return; <<
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence