Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include <map>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     map<int, int> m;
  8.     if (m[0])
  9.         cout << "tem zero\n";
  10.     else
  11.         cout << "nao tem zero\n";
  12.     if (m[0])
  13.         cout << "tem zero\n";
  14.     else
  15.         cout << "nao tem zero\n";
  16.     m[0];
  17.      if (m[0])
  18.         cout << "tem zero\n";
  19.     else
  20.         cout << "nao tem zero\n";
  21.  
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement