fork(3) download
  1. #include <iostream>
  2. #include <map>
  3. #include <vector>
  4. using namespace std;
  5.  
  6. int main() {
  7. map<int, vector<bool> > myMap;
  8. vector<bool> one {true, true, false};
  9. myMap[1] = one;
  10. cout << myMap[1][0] << endl;
  11. cout << myMap[1][1] << endl;
  12. cout << myMap[1][2] << endl;
  13. return 0;
  14. }
Success #stdin #stdout 0s 3432KB
stdin
Standard input is empty
stdout
1
1
0