0_0_35665302_21218.cpp: In function 'int main()':
0_0_35665302_21218.cpp:5:4: error: 'map' was not declared in this scope
map<string, int> map1; //<单词对应的数字序列,对应该数字序列的单词数量>
^
0_0_35665302_21218.cpp:5:8: error: 'string' was not declared in this scope
map<string, int> map1; //<单词对应的数字序列,对应该数字序列的单词数量>
^
0_0_35665302_21218.cpp:5:16: error: expected primary-expression before 'int'
map<string, int> map1; //<单词对应的数字序列,对应该数字序列的单词数量>
^
0_0_35665302_21218.cpp:7:4: error: 'cin' was not declared in this scope
cin >> T; //输入测试用例数
^
0_0_35665302_21218.cpp:11:15: error: expected ';' before 'sn'
string sn[9000];
^
0_0_35665302_21218.cpp:14:19: error: 'sn' was not declared in this scope
cin >> sn[i]; //输入n个数字序列
^
0_0_35665302_21218.cpp:18:19: error: expected ';' before 's'
string s,s1;
^
0_0_35665302_21218.cpp:19:19: error: 's' was not declared in this scope
cin >> s; //输入单词
^
0_0_35665302_21218.cpp:38:16: error: 's1' was not declared in this scope
s1.append(1, c);
^
0_0_35665302_21218.cpp:40:12: error: 'map1' was not declared in this scope
map1[s1]++; //使map1中s1对应的值+1
^
0_0_35665302_21218.cpp:40:17: error: 's1' was not declared in this scope
map1[s1]++; //使map1中s1对应的值+1
^
0_0_35665302_21218.cpp:44:12: error: 'cout' was not declared in this scope
cout << map1[sn[i]]++<<endl; //按顺序输出数字序列对应的单词数
^
0_0_35665302_21218.cpp:44:20: error: 'map1' was not declared in this scope
cout << map1[sn[i]]++<<endl; //按顺序输出数字序列对应的单词数
^
0_0_35665302_21218.cpp:44:25: error: 'sn' was not declared in this scope
cout << map1[sn[i]]++<<endl; //按顺序输出数字序列对应的单词数
^
0_0_35665302_21218.cpp:44:35: error: 'endl' was not declared in this scope
cout << map1[sn[i]]++<<endl; //按顺序输出数字序列对应的单词数
^
0_0_35665302_21218.cpp:46:8: error: 'map1' was not declared in this scope
map1.clear();
^
|