Closed Lucas-101 closed 2 years ago
I am sorry for the late response but could you provide more information on how you compiled it? Thank you.
We got it sorted out and came to the conclusion that he used the command "gcc" instead of "g++", which was the cause for the error.
Logs, std::allocator >)':
Main.cpp:(.text+0x25): undefined reference to >::open(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::_Ios_Openmode)'
/usr/bin/ld: Main.cpp:(.text+0x61): undefined reference to cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string()'
/usr/bin/ld: Main.cpp:(.text+0x8f): undefined reference to , std::allocator >::~basic_string()'
/usr/bin/ld: Main.cpp:(.text+0xcc): undefined reference to >::close()'
/usr/bin/ld: Main.cpp:(.text+0xee): undefined reference to >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const*)'
/usr/bin/ld: Main.cpp:(.text+0xf8): undefined reference to , std::allocator >::~basic_string()'
/usr/bin/ld: Main.cpp:(.text+0x149): undefined reference to cxx11::basic_string<char, std::char_traits, std::allocator >::~basic_string()'
/usr/bin/ld: Main.cpp:(.text+0x1ca): undefined reference to cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
/usr/bin/ld: Main.cpp:(.text+0x230): undefined reference to >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const)'
/usr/bin/ld: Main.cpp:(.text+0x248): undefined reference to >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char)'
/usr/bin/ld: Main.cpp:(.text+0x262): undefined reference to >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const )'
/usr/bin/ld: Main.cpp:(.text+0x27e): undefined reference to , std::allocator >::length() const'
/usr/bin/ld: Main.cpp:(.text+0x2d4): undefined reference to `std:: cxx11::basic_string<char, std::char_traits, std::allocator >::operator[](unsigned long)'
/usr/bin/ld: Main.cpp:(.text+0x2ef): undefined reference to , std::allocator >::operator[](unsigned long)'
/usr/bin/ld: Main.cpp:(.text+0x35e): undefined reference to `std:: cxx11::basic_string<char, std::char_traits, std::allocator >::operator[](unsigned long)'
/usr/bin/ld: Main.cpp:(.text+0x3e6): undefined reference to >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char)'
/usr/bin/ld: Main.cpp:(.text+0x3fe): undefined reference to >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const)'
/usr/bin/ld: Main.cpp:(.text+0x426): undefined reference to >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char)'
/usr/bin/ld: Main.cpp:(.text+0x443): undefined reference to `std::basic_ostream<char, std::char_traits >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const )'
/usr/bin/ld: Main.cpp:(.text+0x476): undefined reference to `std::basic_ostream<char, std::char_traits >& std::operator<< <char, std::char_traits, std::allocator >(std::basic_ostream<char, std::char_traits >&, std:: cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
/usr/bin/ld: Main.cpp:(.text+0x483): undefined reference to , std::allocator >::~basic_string()'
/usr/bin/ld: Main.cpp:(.text+0x51c): undefined reference to >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const*)'
/usr/bin/ld: Main.cpp:(.text+0x536): undefined reference to >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char)'
/usr/bin/ld: Main.cpp:(.text+0x552): undefined reference to `std:: cxx11::basic_string<char, std::char_traits, std::allocator >::~basic_string()'
/usr/bin/ld: Main.cpp:(.text+0x566): undefined reference to ::~allocator()'
/usr/bin/ld: Main.cpp:(.text+0x594): undefined reference to , std::allocator >::~basic_string()'
/usr/bin/ld: /tmp/ccujxTTe.o: in function , std::allocator > >::~pair()':
Main.cpp:(.text._ZNSt4pairIK8LetterIsNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev[_ZNSt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED5Ev]+0x18): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::~basic_string()'
/usr/bin/ld: /tmp/ccujxTTe.o: in function ::allocator()'
/usr/bin/ld: Main.cpp:(.text._ZNSt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA6_KcLb1EEEOTOT0[_ZNSt4pairIK8LetterIsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA6_KcLb1EEEOTOT0]+0x66): undefined reference to `std::allocator::~allocator()'
/usr/bin/ld: Main.cpp:(.text._ZNSt4pairIK8LetterIsNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA6_KcLb1EEEOTOT0[_ZNSt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA6_KcLb1EEEOTOT0]+0x77): undefined reference to , std::allocator > >::pair<LetterIs, char const (&) [10], true>(LetterIs&&, char const (&) [10])':
Main.cpp:(.text._ZNSt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA10_KcLb1EEEOTOT0[_ZNSt4pairIK8LetterIsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA10_KcLb1EEEOTOT0]+0x39): undefined reference to `std::allocator::allocator()'
/usr/bin/ld: Main.cpp:(.text._ZNSt4pairIK8LetterIsNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA10_KcLb1EEEOTOT0[_ZNSt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA10_KcLb1EEEOTOT0]+0x66): undefined reference to `std::allocator::~allocator()'
/usr/bin/ld: Main.cpp:(.text._ZNSt4pairIK8LetterIsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA10_KcLb1EEEOTOT0[_ZNSt4pairIK8LetterIsNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA10_KcLb1EEEOTOT0]+0x77): undefined reference to , std::allocator > >::pair<LetterIs, char const (&) [12], true>(LetterIs&&, char const (&) [12])':
Main.cpp:(.text._ZNSt4pairIK8LetterIsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA12_KcLb1EEEOTOT0[_ZNSt4pairIK8LetterIsNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA12_KcLb1EEEOTOT0]+0x39): undefined reference to ::~allocator()'
/usr/bin/ld: Main.cpp:(.text._ZNSt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA12_KcLb1EEEOTOT0[_ZNSt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA12_KcLb1EEEOTOT0]+0x77): undefined reference to , std::allocator >::_Alloc_hider::~_Alloc_hider()':
Main.cpp:(.text._ZNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderD2Ev[_ZNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderD5Ev]+0x14): undefined reference to , std::allocator >::basic_string<std::allocator >(char const, std::allocator const&)':
Main.cpp:(.text._ZNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3EEPKcRKS3[_ZNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3EEPKcRKS3]+0x21): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_local_data()'
/usr/bin/ld: Main.cpp:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3EEPKcRKS3[_ZNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEEC5IS3EEPKcRKS3]+0x36): undefined reference to `std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_Alloc_hider::_Alloc_hider(char , std::allocator const&)'
/usr/bin/ld: /tmp/ccujxTTe.o: in function , std::allocator >::_M_data(char*)'
/usr/bin/ld: Main.cpp:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0xa3): undefined reference to , std::allocator >::_M_data() const'
/usr/bin/ld: Main.cpp:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0xc5): undefined reference to , std::allocator >::_M_set_length(unsigned long)'
/usr/bin/ld: Main.cpp:(.text._ZNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0xe2): undefined reference to `cxa_begin_catch'
/usr/bin/ld: Main.cpp:(.text._ZNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0xee): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_dispose()'
/usr/bin/ld: Main.cpp:(.text._ZNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0xf3): undefined reference to `cxa_rethrow'
/usr/bin/ld: Main.cpp:(.text._ZNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0xfb): undefined reference to `cxa_end_catch'
/usr/bin/ld: /tmp/ccujxTTe.o: in function `void std::vector<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std:: cxx11::basic_string<char, std::char_traits, std::allocator > > >::_M_realloc_insert<std:: cxx11::basic_string<char, std::char_traits, std::allocator > const&>(gnu_cxx::__normal_iterator<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::vector<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std:: cxx11::basic_string<char, std::char_traits, std::allocator > > > >, std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)':
Main.cpp:(.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9 gnu_cxx17normal_iteratorIPS5_S7EEDpOT[_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9gnu_cxx17normal_iteratorIPS5_S7EEDpOT]+0x190): undefined reference to `cxa_begin_catch'
/usr/bin/ld: Main.cpp:(.text._ZNSt6vectorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17normal_iteratorIPS5_S7EEDpOT[_ZNSt6vectorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17normal_iteratorIPS5_S7EEDpOT]+0x1f8): undefined reference to , std::allocator > > > std::_Rb_tree<LetterIs, std::pair<LetterIs const, std:: cxx11::basic_string<char, std::char_traits, std::allocator > >, std::_Select1st<std::pair<LetterIs const, std:: cxx11::basic_string<char, std::char_traits, std::allocator > > >, std::less, std::allocator<std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traits, std::allocator > > > >::_M_emplace_hint_unique<std::piecewise_construct_t const&, std::tuple<LetterIs const&>, std::tuple<> >(std::_Rb_tree_const_iterator<std::pair<LetterIs const, std:: cxx11::basic_string<char, std::char_traits, std::allocator > > >, std::piecewise_construct_t const&, std::tuple<LetterIs const&>&&, std::tuple<>&&)':
Main.cpp:(.text._ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESK_IJEEEEESt17_Rb_tree_iteratorIS9_ESt23_Rb_tree_const_iteratorIS9EDpOT[_ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESK_IJEEEEESt17_Rb_tree_iteratorIS9_ESt23_Rb_tree_const_iteratorIS9EDpOT]+0xdf): undefined reference to , std::allocator > >::construct<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std:: cxx11::basic_string<char, std::char_traits, std::allocator > const&>(std::__cxx11::basic_string<char, std::char_traits, std::allocator > , std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)':
Main.cpp:(.text._ZN9gnu_cxx13new_allocatorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE9constructIS6_JRKS6_EEEvPTDpOT0[_ZN9 gnu_cxx13new_allocatorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE9constructIS6_JRKS6_EEEvPTDpOT0]+0x43): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
/usr/bin/ld: /tmp/ccujxTTe.o: in function `std::vector<std:: cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::cxx11::basic_string<char, std::char_traits, std::allocator > > >::_M_check_len(unsigned long, char const*) const':
Main.cpp:(.text._ZNKSt6vectorINSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc[_ZNKSt6vectorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_M_check_lenEmPKc]+0x4c): undefined reference to `std::throw_length_error(char const)'
/usr/bin/ld: /tmp/ccujxTTe.o: in function `std::_Rb_tree<LetterIs, std::pair<LetterIs const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > >, std::_Select1st<std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traits, std::allocator > > >, std::less, std::allocator<std::pair<LetterIs const, std:: cxx11::basic_string<char, std::char_traits, std::allocator > > > >::_M_insert_node(std::_Rb_tree_node_base , std::_Rb_tree_node_base, std::_Rb_tree_node<std::pair<LetterIs const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > )':
Main.cpp:(.text._ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSH_PSt13_Rb_tree_nodeIS9_E[_ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE14_M_insert_nodeEPSt18_Rb_tree_node_baseSH_PSt13_Rb_tree_nodeIS9_E]+0x8b): undefined reference to , std::allocator > > > std::_Rb_tree<LetterIs, std::pair<LetterIs const, std:: cxx11::basic_string<char, std::char_traits, std::allocator > >, std::_Select1st<std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traits, std::allocator > > >, std::less, std::allocator<std::pair<LetterIs const, std:: cxx11::basic_string<char, std::char_traits, std::allocator > > > >::_Minsert<std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traits, std::allocator > > const&, std::_Rb_tree<LetterIs, std::pair<LetterIs const, std:: cxx11::basic_string<char, std::char_traits, std::allocator > >, std::_Select1st<std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traits, std::allocator > > >, std::less, std::allocator<std::pair<LetterIs const, std:: cxx11::basic_string<char, std::char_traits, std::allocator > > > >::_Alloc_node>(std::_Rb_tree_node_base, std::_Rb_tree_node_base, std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traits, std::allocator > > const&, std::_Rb_tree<LetterIs, std::pair<LetterIs const, std:: cxx11::basic_string<char, std::char_traits, std::allocator > >, std::_Select1st<std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traits, std::allocator > > >, std::less, std::allocator<std::pair<LetterIs const, std:: cxx11::basic_string<char, std::char_traits, std::allocator > > > >::_Alloc_node&)':
Main.cpp:(.text._ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE10_M_insert_IRKS9_NSF_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS9_EPSt18_Rb_tree_node_baseSN_OTRT0[_ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE10_M_insert_IRKS9_NSF_11_Alloc_nodeEEESt17_Rb_tree_iteratorIS9_EPSt18_Rb_tree_node_baseSN_OTRT0]+0xb8): undefined reference to , std::allocator > >::deallocate(std::cxx11::basic_string<char, std::char_traits, std::allocator >, unsigned long)':
Main.cpp:(.text._ZN9gnu_cxx13new_allocatorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10deallocateEPS6_m[_ZN9gnu_cxx13new_allocatorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10deallocateEPS6_m]+0x2a): undefined reference to `operator delete(void, unsigned long)'
/usr/bin/ld: /tmp/ccujxTTe.o: in function `void gnu_cxx::new_allocator<std::cxx11::basic_string<char, std::char_traits, std::allocator > >::destroy<std:: cxx11::basic_string<char, std::char_traits, std::allocator > >(std::cxx11::basic_string<char, std::char_traits, std::allocator >*)':
Main.cpp:(.text._ZN9gnu_cxx13new_allocatorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE7destroyIS6EEvPT[_ZN9 gnu_cxx13new_allocatorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE7destroyIS6EEvPT]+0x18): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::~basic_string()'
/usr/bin/ld: /tmp/ccujxTTe.o: in function , std::allocator > > >::operator--()':
Main.cpp:(.text._ZNSt17_Rb_tree_iteratorISt4pairIK8LetterIsNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEmmEv[_ZNSt17_Rb_tree_iteratorISt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEmmEv]+0x17): undefined reference to , std::allocator > > >::operator++()':
Main.cpp:(.text._ZNSt17_Rb_tree_iteratorISt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEppEv[_ZNSt17_Rb_tree_iteratorISt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEppEv]+0x17): undefined reference to , std::allocator > >(std:: cxx11::basic_string<char, std::char_traits, std::allocator >)':
Main.cpp:(.text._ZSt8_DestroyINSt7cxx1112basic_stringIcSt11chartraitsIcESaIcEEEEvPT[_ZSt8_DestroyINSt7__cxx1112basic_stringIcSt11chartraitsIcESaIcEEEEvPT]+0x14): undefined reference to `std::cxx11::basic_string<char, std::char_traits, std::allocator >::~basic_string()'
/usr/bin/ld: /tmp/ccujxTTe.o: in function `gnu_cxx::new_allocator<std::cxx11::basic_string<char, std::char_traits, std::allocator > >::allocate(unsigned long, void const )':
Main.cpp:(.text._ZN9gnu_cxx13new_allocatorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv[_ZN9gnu_cxx13new_allocatorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv]+0x45): undefined reference to , std::allocator > > > >::allocate(unsigned long, void const*)':
Main.cpp:(.text._ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIK8LetterIsNSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEE8allocateEmPKv[_ZN9gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEE8allocateEmPKv]+0x45): undefined reference to `std::throw_bad_array_new_length()'
/usr/bin/ld: Main.cpp:(.text._ZN9gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEE8allocateEmPKv[_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEE8allocateEmPKv]+0x4a): undefined reference to , std::allocator > >, std::_Select1st<std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traits, std::allocator > > >, std::less, std::allocator<std::pair<LetterIs const, std:: cxx11::basic_string<char, std::char_traits, std::allocator > > > >::_M_construct_node<std::pair<LetterIs const, std:: cxx11::basic_string<char, std::char_traits, std::allocator > > const&>(std::_Rb_tree_node<std::pair<LetterIs const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > , std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traits, std::allocator > > const&)':
Main.cpp:(.text._ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7 cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE17_M_construct_nodeIJRKS9_EEEvPSt13_Rb_tree_nodeIS9EDpOT[_ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE17_M_construct_nodeIJRKS9_EEEvPSt13_Rb_tree_nodeIS9EDpOT]+0x66): undefined reference to `cxa_begin_catch'
/usr/bin/ld: Main.cpp:(.text._ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE17_M_construct_nodeIJRKS9_EEEvPSt13_Rb_tree_nodeIS9EDpOT[_ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE17_M_construct_nodeIJRKS9_EEEvPSt13_Rb_tree_nodeIS9EDpOT]+0x7e): undefined reference to , std::allocator > >::pair<LetterIs const&, 0ul>(std::tuple<LetterIs const&>&, std::tuple<>&, std::_Index_tuple<0ul>, std::_Index_tuple<>)':
Main.cpp:(.text._ZNSt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2IJRS1_EJLm0EEJEJEEERSt5tupleIJDpT_EERSB_IJDpT1_EESt12_Index_tupleIJXspT0_EEESK_IJXspT2_EEE[_ZNSt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC5IJRS1_EJLm0EEJEJEEERSt5tupleIJDpT_EERSB_IJDpT1_EESt12_Index_tupleIJXspT0_EEESK_IJXspT2_EEE]+0x3c): undefined reference to , std::allocator > >::pair(std::pair<LetterIs const, std:: cxx11::basic_string<char, std::char_traits, std::allocator > > const&)':
Main.cpp:(.text._ZNSt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11chartraitsIcESaIcEEEEC2ERKS8[_ZNSt4pairIK8LetterIsNSt7cxx1112basic_stringIcSt11chartraitsIcESaIcEEEEC5ERKS8]+0x33): undefined reference to , std::allocator > >::construct<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std:: cxx11::basic_string<char, std::char_traits, std::allocator > >(std::cxx11::basic_string<char, std::char_traits, std::allocator >*, std:: cxx11::basic_string<char, std::char_traits, std::allocator >&&)':
Main.cpp:(.text._ZN9gnu_cxx13new_allocatorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE9constructIS6_JS6_EEEvPTDpOT0[_ZN9gnu_cxx13new_allocatorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE9constructIS6_JS6_EEEvPTDpOT0]+0x3c): undefined reference to
/usr/bin/ld: /tmp/ccujxTTe.o: in function
ExtractText(std::cxx11::basic_string<char, std::char_traitsstd::basic_ifstream<char, std::char_traits<char> >::basic_ifstream()' /usr/bin/ld: Main.cpp:(.text+0x43): undefined reference to
std::basic_ifstream<char, std::char_traitsstd::basic_ifstream<char, std::char_traits<char> >::is_open()' /usr/bin/ld: Main.cpp:(.text+0x76): undefined reference to
std::std::basic_istream<char, std::char_traits<char> >& std::getline<char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' /usr/bin/ld: Main.cpp:(.text+0xb7): undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::basic_ios<char, std::char_traits<char> >::eof() const' /usr/bin/ld: Main.cpp:(.text+0xe2): undefined reference to
std::basic_ifstream<char, std::char_traitsstd::cout' /usr/bin/ld: Main.cpp:(.text+0xf3): undefined reference to
std::basic_ostream<char, std::char_traitsstd::cin' /usr/bin/ld: Main.cpp:(.text+0xfd): undefined reference to
std::istream::get()' /usr/bin/ld: Main.cpp:(.text+0x10d): undefined reference tostd::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()' /usr/bin/ld: Main.cpp:(.text+0x121): undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()' /usr/bin/ld: /tmp/ccujxTTe.o: in function
main': Main.cpp:(.text+0x18a): undefined reference tostd::allocator<char>::allocator()' /usr/bin/ld: Main.cpp:(.text+0x1be): undefined reference to
std::std::allocator<char>::~allocator()' /usr/bin/ld: Main.cpp:(.text+0x21a): undefined reference to
std::std::cout' /usr/bin/ld: Main.cpp:(.text+0x235): undefined reference to
std::basic_ostream<char, std::char_traitsstd::ostream::operator<<(int)' /usr/bin/ld: Main.cpp:(.text+0x255): undefined reference to
std::basic_ostream<char, std::char_traitsstd::ostream::operator<<(unsigned int)' /usr/bin/ld: Main.cpp:(.text+0x26f): undefined reference to
std::basic_ostream<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()' /usr/bin/ld: Main.cpp:(.text+0x28d): undefined reference to
std::cin' /usr/bin/ld: Main.cpp:(.text+0x292): undefined reference tostd::basic_istream<char, std::char_traits<char> >& std::operator>><char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' /usr/bin/ld: Main.cpp:(.text+0x2a1): undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned long)' /usr/bin/ld: Main.cpp:(.text+0x343): undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::cout' /usr/bin/ld: Main.cpp:(.text+0x3eb): undefined reference to
std::basic_ostream<char, std::char_traitsstd::ostream::operator<<(int)' /usr/bin/ld: Main.cpp:(.text+0x40b): undefined reference to
std::basic_ostream<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned long)' /usr/bin/ld: Main.cpp:(.text+0x436): undefined reference to
std::basic_ostream<char, std::char_traitsstd::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char)' /usr/bin/ld: Main.cpp:(.text+0x4ca): undefined reference to
std::cout' /usr/bin/ld: Main.cpp:(.text+0x4cf): undefined reference tostd::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)' /usr/bin/ld: Main.cpp:(.text+0x4e0): undefined reference to
std::cout' /usr/bin/ld: Main.cpp:(.text+0x4e5): undefined reference tostd::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)' /usr/bin/ld: Main.cpp:(.text+0x4fd): undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::cout' /usr/bin/ld: Main.cpp:(.text+0x521): undefined reference to
std::basic_ostream<char, std::char_traitsstd::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: Main.cpp:(.text+0x543): undefined reference to
std::basic_ostream<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /usr/bin/ld: Main.cpp:(.text+0x577): undefined reference to
std::allocatorstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()' /usr/bin/ld: Main.cpp:(.text+0x5a8): undefined reference to
std::cxx11::basic_string<char, std::char_traits__static_initialization_and_destruction_0(int, int)': Main.cpp:(.text+0x607): undefined reference to
std::ios_base::Init::Init()' /usr/bin/ld: Main.cpp:(.text+0x616): undefined reference tostd::ios_base::Init::~Init()' /usr/bin/ld: /tmp/ccujxTTe.o: in function
std::pair<LetterIs const, std::__cxx11::basic_string<char, std::char_traitsstd::pair<LetterIs const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::pair<LetterIs, char const (&) [6], true>(LetterIs&&, char const (&) [6])': Main.cpp:(.text._ZNSt4pairIK8LetterIsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA6_KcLb1EEEOT_OT0_[_ZNSt4pairIK8LetterIsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA6_KcLb1EEEOT_OT0_]+0x39): undefined reference to
std::allocatorstd::allocator<char>::~allocator()' /usr/bin/ld: /tmp/ccujxTTe.o: in function
std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traitsstd::allocator<char>::~allocator()' /usr/bin/ld: /tmp/ccujxTTe.o: in function
std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traitsstd::allocator<char>::allocator()' /usr/bin/ld: Main.cpp:(.text._ZNSt4pairIK8LetterIsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA12_KcLb1EEEOT_OT0_[_ZNSt4pairIK8LetterIsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC1IS0_RA12_KcLb1EEEOT_OT0_]+0x66): undefined reference to
std::allocatorstd::allocator<char>::~allocator()' /usr/bin/ld: /tmp/ccujxTTe.o: in function
std::cxx11::basic_string<char, std::char_traitsstd::allocator<char>::~allocator()' /usr/bin/ld: /tmp/ccujxTTe.o: in function
std::cxx11::basic_string<char, std::char_traitsvoid std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag)': Main.cpp:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0x45): undefined reference to
std::throw_logic_error(char const*)' /usr/bin/ld: Main.cpp:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0x7e): undefined reference tostd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)' /usr/bin/ld: Main.cpp:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0x90): undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_capacity(unsigned long)' /usr/bin/ld: Main.cpp:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0xaf): undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_copy_chars(char*, char const*, char const*)' /usr/bin/ld: Main.cpp:(.text._ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag[_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag]+0xd8): undefined reference to
std::cxx11::basic_string<char, std::char_traits__cxa_rethrow' /usr/bin/ld: Main.cpp:(.text._ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_[_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_M_realloc_insertIJRKS5_EEEvN9__gnu_cxx17__normal_iteratorIPS5_S7_EEDpOT_]+0x200): undefined reference to
cxa_end_catch' /usr/bin/ld: /tmp/ccujxTTe.o: in function `std::_Rb_tree_iterator<std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traits__cxa_begin_catch' /usr/bin/ld: Main.cpp:(.text._ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESK_IJEEEEESt17_Rb_tree_iteratorIS9_ESt23_Rb_tree_const_iteratorIS9_EDpOT_[_ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESK_IJEEEEESt17_Rb_tree_iteratorIS9_ESt23_Rb_tree_const_iteratorIS9_EDpOT_]+0xf7): undefined reference to
__cxa_rethrow' /usr/bin/ld: Main.cpp:(.text._ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESK_IJEEEEESt17_Rb_tree_iteratorIS9_ESt23_Rb_tree_const_iteratorIS9EDpOT[_ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE22_M_emplace_hint_uniqueIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESK_IJEEEEESt17_Rb_tree_iteratorIS9_ESt23_Rb_tree_const_iteratorIS9EDpOT]+0xff): undefined reference to__cxa_end_catch' /usr/bin/ld: /tmp/ccujxTTe.o: in function
void gnu_cxx::new_allocator<std::cxx11::basic_string<char, std::char_traitsstd::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)' /usr/bin/ld: /tmp/ccujxTTe.o: in function
std::_Rb_tree_iterator<std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traitsstd::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)' /usr/bin/ld: /tmp/ccujxTTe.o: in function
gnu_cxx::new_allocator<std::cxx11::basic_string<char, std::char_traitsvoid std::_Rb_tree<LetterIs, std::pair<LetterIs const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::_Select1st<std::pair<LetterIs const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::less<LetterIs>, std::allocator<std::pair<LetterIs const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::_M_construct_node<std::piecewise_construct_t const&, std::tuple<LetterIs const&>, std::tuple<> >(std::_Rb_tree_node<std::pair<LetterIs const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >*, std::piecewise_construct_t const&, std::tuple<LetterIs const&>&&, std::tuple<>&&)': Main.cpp:(.text._ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESK_IJEEEEEvPSt13_Rb_tree_nodeIS9_EDpOT_[_ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESK_IJEEEEEvPSt13_Rb_tree_nodeIS9_EDpOT_]+0x96): undefined reference to
cxa_begin_catch' /usr/bin/ld: Main.cpp:(.text._ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESK_IJEEEEEvPSt13_Rb_tree_nodeIS9EDpOT[_ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESK_IJEEEEEvPSt13_Rb_tree_nodeIS9EDpOT]+0xae): undefined reference to `cxa_rethrow' /usr/bin/ld: Main.cpp:(.text._ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESK_IJEEEEEvPSt13_Rb_tree_nodeIS9EDpOT[_ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE17_M_construct_nodeIJRKSt21piecewise_construct_tSt5tupleIJRS2_EESK_IJEEEEEvPSt13_Rb_tree_nodeIS9EDpOT]+0xb6): undefined reference to__cxa_end_catch' /usr/bin/ld: /tmp/ccujxTTe.o: in function
std::_Rb_tree_iterator<std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traitsstd::_Rb_tree_decrement(std::_Rb_tree_node_base*)' /usr/bin/ld: /tmp/ccujxTTe.o: in function
std::_Rb_tree_iterator<std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traitsstd::_Rb_tree_increment(std::_Rb_tree_node_base*)' /usr/bin/ld: /tmp/ccujxTTe.o: in function
void std::_Destroy<std::cxx11::basic_string<char, std::char_traitsstd::__throw_bad_array_new_length()' /usr/bin/ld: Main.cpp:(.text._ZN9__gnu_cxx13new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv[_ZN9__gnu_cxx13new_allocatorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv]+0x4a): undefined reference to
std::throw_bad_alloc()' /usr/bin/ld: Main.cpp:(.text._ZN9gnu_cxx13new_allocatorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv[_ZN9gnu_cxx13new_allocatorINSt7cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE8allocateEmPKv]+0x5a): undefined reference tooperator new(unsigned long)' /usr/bin/ld: /tmp/ccujxTTe.o: in function
gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traitsstd::__throw_bad_alloc()' /usr/bin/ld: Main.cpp:(.text._ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIK8LetterIsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEE8allocateEmPKv[_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIK8LetterIsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEE8allocateEmPKv]+0x64): undefined reference to
operator new(unsigned long)' /usr/bin/ld: /tmp/ccujxTTe.o: in function__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<LetterIs const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::deallocate(std::_Rb_tree_node<std::pair<LetterIs const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >*, unsigned long)': Main.cpp:(.text._ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIK8LetterIsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEE10deallocateEPSC_m[_ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeISt4pairIK8LetterIsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEE10deallocateEPSC_m]+0x34): undefined reference to
operator delete(void, unsigned long)' /usr/bin/ld: /tmp/ccujxTTe.o: in function `void std::_Rb_tree<LetterIs, std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traits__cxa_rethrow' /usr/bin/ld: Main.cpp:(.text._ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE17_M_construct_nodeIJRKS9_EEEvPSt13_Rb_tree_nodeIS9_EDpOT_[_ZNSt8_Rb_treeI8LetterIsSt4pairIKS0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEESt10_Select1stIS9_ESt4lessIS0_ESaIS9_EE17_M_construct_nodeIJRKS9_EEEvPSt13_Rb_tree_nodeIS9_EDpOT_]+0x86): undefined reference to
cxa_end_catch' /usr/bin/ld: /tmp/ccujxTTe.o: in function `std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()' /usr/bin/ld: /tmp/ccujxTTe.o: in function
std::pair<LetterIs const, std::cxx11::basic_string<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/bin/ld: /tmp/ccujxTTe.o: in function
void gnu_cxx::new_allocator<std::cxx11::basic_string<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)' /usr/bin/ld: /tmp/ccujxTTe.o:(.eh_frame+0xeb): undefined reference to
__gxx_personality_v0' collect2: error: ld returned 1 exit status `