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