0_0_26553944_15315.cpp: In function 'int main()': 0_0_26553944_15315.cpp:11:29: error: cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...' scanf("%s",s);p[s]+=1; ^