fork download
  1. #include <iostream>
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. int a,b;
  8. unordered_set <int> s;
  9. b = 10;
  10. s.insert(6);
  11. s.insert(8);
  12. s.insert(b);
  13. cout<<"find:";
  14. cin>>a;
  15. if(s.find(a)!=s.end())
  16. cout<<"Found"<<a<<b;
  17. else
  18. cout<<"not found";
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 4292KB
stdin
10
stdout
find:Found1010