Advertisement
Josif_tepe

Untitled

Oct 26th, 2021
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <algorithm>
  4. #include <map>
  5. using namespace std;
  6. typedef long long ll;
  7.  
  8. int main() {
  9.     map<vector<int>, bool> mapa;
  10.     vector<int> v;
  11.     v.push_back(0);
  12.     v.push_back(1);
  13.     v.push_back(2);
  14.    
  15.     mapa[v] = true;
  16.     vector<int> v2;
  17.     v2.push_back(0);
  18.     v2.push_back(2);
  19.     v2.push_back(1);
  20.    
  21.     cout << mapa[v2] << endl;
  22.     return 0;
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement