0_0_35176062_6160.cpp: In function 'int main()': 0_0_35176062_6160.cpp:39:17: error: cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...' scanf("%s",s[i]); ^