0_0_31807514_4721.cpp: In function 'int main()':
0_0_31807514_4721.cpp:5:5: error: 'cin' was not declared in this scope
cin>>n;
^
0_0_31807514_4721.cpp:6:5: error: 'string' was not declared in this scope
string lne;
^
0_0_31807514_4721.cpp:7:18: error: 'lne' was not declared in this scope
getline(cin, lne);
^
0_0_31807514_4721.cpp:7:21: error: 'getline' was not declared in this scope
getline(cin, lne);
^
0_0_31807514_4721.cpp:10:35: error: 'memset' was not declared in this scope
memset(cnt, 0, sizeof(cnt));
^
0_0_31807514_4721.cpp:11:9: error: 'stringstream' was not declared in this scope
stringstream ss(lne);
^
0_0_31807514_4721.cpp:12:16: error: expected ';' before 'word'
string word;
^
0_0_31807514_4721.cpp:13:15: error: 'ss' was not declared in this scope
while(ss>>word){
^
0_0_31807514_4721.cpp:13:19: error: 'word' was not declared in this scope
while(ss>>word){
^
0_0_31807514_4721.cpp:18:9: error: 'cout' was not declared in this scope
cout<<"a:"<<cnt['a']<<endl;
^
0_0_31807514_4721.cpp:18:31: error: 'endl' was not declared in this scope
cout<<"a:"<<cnt['a']<<endl;
^
|