0_0_37383747_12595.cpp: In function 'int main()': 0_0_37383747_12595.cpp:7:16: error: cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...' scanf("%s",str); ^