English
Open in Telegram

Message#include <iostream>

23 April 2023
D
#include <iostream> #include <list> using namespace std; int funk(const list<int>& lst) { if (lst.size() >= 2) { auto it = lst.begin(); ++it; return *it; } else { cout << "Ro'yxat kamida ikkita elementga ega bo'lishi kerak!" << endl; return -1; } } int main() { list<int> my_list = { 3, 7, 1, 9, 8, 5, 1 }; cout << "Ro'yxat: "; for (auto elem : my_list) { cout << elem << " "; } cout << endl; int ikki = funk(my_list); if (ikki != -1) { cout << "Ikkinchi element: " << ikki << endl; } return 0; }

Nearby in the feed

DDeleted Account6.Deque max va min elementlari o’chirilsin.DDeleted Account#include <bits/stdc++.h> #include <deque> using namespace std; int main() { deque<int> my_deque = { 5, 3, 8, 1, 7, 2 }; cout << "Berilgan elementlar: "; for (au
this message
FFARKHODOFFkimdadir kalkulyator ilovasi bormi c++ da yozilganDDeleted AccountShu guruhda bor edi tepada
CC++ vs PythonC++ vs Python@cpp_vs_python · group · Tech
114members39 409messages in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count