0_0_19920636_10383.cpp: In function 'int main()': 0_0_19920636_10383.cpp:18:30: error: cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...' scanf("%s%d",s,&x); ^