Xullas, shunday: #include <iostream> #include <fstream> #include <string> using namespace std; int main() { ofstream file; string filename, line; cout << "Faylning nomini kiriting: "; getline(cin, filename); file.open(filename); if (file.is_open()) { cout << "Faylga yozish uchun satrni kiriting: "; getline(cin, line); file << line << endl; file.close(); cout << "Fayl muvaffaqiyatli saqlandi. " << endl; } else { cout << "Faylni ochib bo'lmadi. " << endl; return } 0; } Ushbu kod xatolarsiz ishlashi kerak. Foydalanuvchi tomonidan kiritilgan fayl nomi to'g'ri kengayt
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence