Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <list>
- using namespace std;
- int main(){
- list<int> l = {1, 3, 4, 2, 5};
- auto it = find(l.begin(), l.end(), 0);
- if (it != l.end())
- cout << *it;
- else
- cout << "Element Not Found!";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment