prog.cpp:1:34: error: 'string' in namespace 'std' does not name a type
bool has_string_ip_ad(const std::string& s)
^
prog.cpp: In function 'bool has_string_ip_ad(const int&)':
prog.cpp:3:15: error: 'boost' does not name a type
static const boost::regex e(".*0*([1-9][0-9]?|1[0-9]{2}|2[0-4][0-9]|25[0-5])[^0-9]+([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])[^0-9]+([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])[^0-9]+([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])[^0-9]+0*(102[4-9]|10[3-9][0-9]|1[1-9][0-9]{2}|[2-9][0-9]{3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-6]).*");
^
prog.cpp:4:9: error: 'boost' has not been declared
return boost::regex_match(s, e);
^
prog.cpp:4:31: error: 'e' was not declared in this scope
return boost::regex_match(s, e);
^
prog.cpp: At global scope:
prog.cpp:7:12: error: 'vector' in namespace 'std' does not name a template type
const std::vector<std::string> badwords =
^
prog.cpp:38:12: error: 'vector' in namespace 'std' does not name a template type
const std::vector<std::string> badword_sizes =
^
prog.cpp:60:12: error: 'map' in namespace 'std' does not name a template type
const std::map<std::string, std::string> PolishReplacementMap =
^
prog.cpp: In constructor 'CPolishReplacementInitHack::CPolishReplacementInitHack()':
prog.cpp:88:28: warning: narrowing conversion of 'c' from 'unsigned char' to 'char' inside { } [-Wnarrowing]
char tmpstr[2] = { c, 0 };
^
prog.cpp:89:4: error: 'string' is not a member of 'std'
std::string tmpstdstr(tmpstr);
^
prog.cpp:90:23: error: 'PolishReplacementMap' was not declared in this scope
auto replacement = PolishReplacementMap.find(tmpstdstr);
^
prog.cpp:90:49: error: 'tmpstdstr' was not declared in this scope
auto replacement = PolishReplacementMap.find(tmpstdstr);
^
prog.cpp:92:28: error: 'boost' has not been declared
PolishReplacement[c] = boost::to_lower_copy(tmpstdstr)[0];
^
prog.cpp:94:28: error: 'boost' has not been declared
PolishReplacement[c] = boost::to_lower_copy(replacement->second)[0];
^
prog.cpp: At global scope:
prog.cpp:100:26: error: variable or field 'FilterBadWords' declared void
void FilterBadWords(std::string& s)
^
prog.cpp:100:21: error: 'string' is not a member of 'std'
void FilterBadWords(std::string& s)
^
prog.cpp:100:34: error: 's' was not declared in this scope
void FilterBadWords(std::string& s)
^