0_0_32712510_25273.cpp: In function 'int main()':
0_0_32712510_25273.cpp:44:24: error: conflicting declaration 'char str [10]'
char str[10];
^
0_0_32712510_25273.cpp:43:20: note: previous declaration as 'std::string str'
string str;
^
0_0_32712510_25273.cpp:45:28: error: cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...'
scanf("%s", str);
^
|