0_0_32341947_28867.cpp: In function 'int main()': 0_0_32341947_28867.cpp:47:20: error: cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...' printf("%s\n",ans); ^