0_0_35384151_20945.cpp:2:2: error: 'string' does not name a type
string wen,str;
^
0_0_35384151_20945.cpp:3:2: error: 'set' does not name a type
set<string> dict;
^
0_0_35384151_20945.cpp: In function 'int main()':
0_0_35384151_20945.cpp:7:19: error: 'cin' was not declared in this scope
while(getline(cin,wen)&&wen!="#")
^
0_0_35384151_20945.cpp:7:23: error: 'wen' was not declared in this scope
while(getline(cin,wen)&&wen!="#")
^
0_0_35384151_20945.cpp:7:26: error: 'getline' was not declared in this scope
while(getline(cin,wen)&&wen!="#")
^
0_0_35384151_20945.cpp:10:9: error: 'stringstream' was not declared in this scope
stringstream ch(wen); //在文本串中找单个单词
^
0_0_35384151_20945.cpp:11:15: error: 'ch' was not declared in this scope
while(ch >>str)
^
0_0_35384151_20945.cpp:11:20: error: 'str' was not declared in this scope
while(ch >>str)
^
0_0_35384151_20945.cpp:12:13: error: 'dict' was not declared in this scope
dict.insert(str);
^
0_0_35384151_20945.cpp:13:25: error: 'dict' was not declared in this scope
printf("%d\n",dict.size());
^
0_0_35384151_20945.cpp:13:36: error: 'printf' was not declared in this scope
printf("%d\n",dict.size());
^
|