Advertisement
Josif_tepe

Untitled

Aug 14th, 2022
896
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <iostream>
  2. #include <map>
  3. using namespace std;
  4.  
  5. int main() {
  6.     map<pair<int, int>, int> visited;
  7.    
  8.     if(visited.find(make_pair(2, 3)) != visited.end()) { // mapata ima kluc (2, 3)
  9.        
  10.     }
  11.     else {
  12.         visited[make_pair(2, 3)] = 10;
  13.     }
  14.     return 0;
  15. }
  16. /*
  17.  B......
  18.  .......
  19.  .......
  20.  .......
  21.  .......
  22.  .......
  23.  DA...aT
  24.  
  25.  
  26.  **/
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement