fork(1) download
  1. #include <algorithm>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. #define weapon_type int
  6.  
  7. weapon_type str_to_weapon(const string &str)
  8. {
  9. string str_nospace = str;
  10. str_nospace.erase(remove_if(str_nospace.begin(), str_nospace.end(), static_cast<int(*)(int)>(isspace)), str_nospace.end());
  11.  
  12. /*
  13.   if (_str_to_weapon_map.count(str_nospace)) {
  14.   return _str_to_weapon_map[str_nospace];
  15.   } else {
  16.   return WPN_UNKNOWN;
  17.   }
  18.   */
  19. }
  20.  
  21. int main() {
  22. return 0;
  23. }
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty