Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <map>
- using namespace std;
- int main() {
- map<pair<int, int>, int> visited;
- if(visited.find(make_pair(2, 3)) != visited.end()) { // mapata ima kluc (2, 3)
- }
- else {
- visited[make_pair(2, 3)] = 10;
- }
- return 0;
- }
- /*
- B......
- .......
- .......
- .......
- .......
- .......
- DA...aT
- **/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement