fork download
  1. #include <iostream>
  2. #include <map>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main() {
  7. map<string, int> myMap;
  8. for (char c = 'A'; c <= 'Z' ; c++)
  9. {
  10. myMap["STAN" + c] = 0xff;
  11. }
  12.  
  13. for (char c = 'A'; c <= 'Z' ; c++)
  14. {
  15. cout << myMap["STAN"+c] << endl;
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0s 3232KB
stdin
Standard input is empty
stdout
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255