0_0_31078481_6028.cpp: In function 'int main()': 0_0_31078481_6028.cpp:42:32: error: cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...' printf("%s\n",name[id[num+1]]); ^