Josif_tepe

Untitled

May 15th, 2026
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <list>
  3. using namespace std;
  4.  
  5. int main(){
  6.     list<int> l = {1, 3, 4, 2, 5};
  7.  
  8.     auto it = find(l.begin(), l.end(), 0);
  9.     if (it != l.end())
  10.         cout << *it;
  11.     else
  12.         cout << "Element Not Found!";
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment