F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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());
                                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 20:40:50, Gzip enabled