fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. deque< int > a;
  6. vector < int > v;
  7. v.push_back(1);
  8. v.push_back(2);
  9.  
  10.  
  11. a.push_back(2);
  12. a.push_front(1);
  13.  
  14. for(int i = 0;i<a.size();i++)
  15. {
  16. cout << a[i] << endl;
  17.  
  18. }
  19. vector<int> :: iterator k = find(v.begin(),v.end(),0);
  20.  
  21. cout << *k << endl;
  22. // your code goes here
  23. return 0;
  24. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
1
2
0