VoltageLaptop:~/Documents/programming/cpp voltagex$ g++ printf_function.cpp printf_function.cpp: In function 'int main(int, char**)': printf_function.cpp:13: error: 'get_int' was not declared in this scope printf_function.cpp:17: error: 'put_string' was not declared in this scope printf_function.cpp: In function 'int get_int(std::string)': printf_function.cpp:24: error: cannot convert 'std::string' to 'const char*' for argument '1' to 'int printf(const char*, ...)' printf_function.cpp: In function 'int put_string(int, int, std::string)': printf_function.cpp:31: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"add"))' to 'bool' printf_function.cpp:36: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"multiply"))' to 'bool' printf_function.cpp:41: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"subtract"))' to 'bool' printf_function.cpp:46: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"mod"))' to 'bool' printf_function.cpp:51: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"pow"))' to 'bool' printf_function.cpp:56: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"divide"))' to 'bool' VoltageLaptop:~/Documents/programming/cpp voltagex$ g++ printf_function.cpp printf_function.cpp:4: error: 'string' was not declared in this scope printf_function.cpp:5: error: 'string' has not been declared printf_function.cpp: In function 'int main(int, char**)': printf_function.cpp:14: error: 'get_int' cannot be used as a function printf_function.cpp:15: error: 'get_int' cannot be used as a function printf_function.cpp:18: error: cannot convert 'std::string' to 'int' for argument '3' to 'int put_string(int, int, int)' printf_function.cpp: In function 'int get_int(std::string)': printf_function.cpp:22: error: 'int get_int(std::string)' redeclared as different kind of symbol printf_function.cpp:4: error: previous declaration of 'int get_int' printf_function.cpp:25: error: cannot convert 'std::string' to 'const char*' for argument '1' to 'int printf(const char*, ...)' printf_function.cpp: In function 'int put_string(int, int, std::string)': printf_function.cpp:32: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"add"))' to 'bool' printf_function.cpp:37: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"multiply"))' to 'bool' printf_function.cpp:42: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"subtract"))' to 'bool' printf_function.cpp:47: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"mod"))' to 'bool' printf_function.cpp:52: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"pow"))' to 'bool' printf_function.cpp:57: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"divide"))' to 'bool' VoltageLaptop:~/Documents/programming/cpp voltagex$ g++ printf_function.cpp printf_function.cpp:4: error: 'string' was not declared in this scope printf_function.cpp: In function 'int main(int, char**)': printf_function.cpp:14: error: 'get_int' cannot be used as a function printf_function.cpp:15: error: 'get_int' cannot be used as a function printf_function.cpp:5: error: too many arguments to function 'int put_string(int)' printf_function.cpp:18: error: at this point in file printf_function.cpp: In function 'int get_int(std::string)': printf_function.cpp:22: error: 'int get_int(std::string)' redeclared as different kind of symbol printf_function.cpp:4: error: previous declaration of 'int get_int' printf_function.cpp:25: error: cannot convert 'std::string' to 'const char*' for argument '1' to 'int printf(const char*, ...)' printf_function.cpp: In function 'int put_string(int, int, std::string)': printf_function.cpp:32: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"add"))' to 'bool' printf_function.cpp:37: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"multiply"))' to 'bool' printf_function.cpp:42: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"subtract"))' to 'bool' printf_function.cpp:47: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"mod"))' to 'bool' printf_function.cpp:52: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"pow"))' to 'bool' printf_function.cpp:57: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"divide"))' to 'bool' VoltageLaptop:~/Documents/programming/cpp voltagex$ g++ printf_function.cpp printf_function.cpp: In function 'int main(int, char**)': printf_function.cpp:14: error: invalid conversion from 'const char*' to 'int' printf_function.cpp:14: error: initializing argument 1 of 'int get_int(int)' printf_function.cpp:15: error: invalid conversion from 'const char*' to 'int' printf_function.cpp:15: error: initializing argument 1 of 'int get_int(int)' printf_function.cpp:5: error: too many arguments to function 'int put_string(int)' printf_function.cpp:18: error: at this point in file VoltageLaptop:~/Documents/programming/cpp voltagex$ g++ printf_function.cpp printf_function.cpp: In function 'int main(int, char**)': printf_function.cpp:14: error: invalid conversion from 'const char*' to 'int' printf_function.cpp:14: error: initializing argument 1 of 'int get_int(int)' printf_function.cpp:15: error: invalid conversion from 'const char*' to 'int' printf_function.cpp:15: error: initializing argument 1 of 'int get_int(int)' printf_function.cpp:5: error: too many arguments to function 'int put_string(int)' printf_function.cpp:18: error: at this point in file printf_function.cpp: In function 'int get_int(std::string)': printf_function.cpp:25: error: cannot convert 'std::string' to 'const char*' for argument '1' to 'int printf(const char*, ...)' printf_function.cpp: In function 'int put_string(int, int, std::string)': printf_function.cpp:32: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"add"))' to 'bool' printf_function.cpp:37: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"multiply"))' to 'bool' printf_function.cpp:42: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"subtract"))' to 'bool' printf_function.cpp:47: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"mod"))' to 'bool' printf_function.cpp:52: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"pow"))' to 'bool' printf_function.cpp:57: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator](((const char*)"divide"))' to 'bool'