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_28631822_5885.cpp: In function 'int main()':
0_0_28631822_5885.cpp:5:5: error: 'string' was not declared in this scope
     string s;
     ^
0_0_28631822_5885.cpp:7:5: error: 'priority_queue' was not declared in this scope
     priority_queue<int,vector<int>,greater<int> >q;//从小到大出队列 
     ^
0_0_28631822_5885.cpp:7:20: error: expected primary-expression before 'int'
     priority_queue<int,vector<int>,greater<int> >q;//从小到大出队列 
                    ^
0_0_28631822_5885.cpp:8:11: error: 'cin' was not declared in this scope
     while(cin>>s)
           ^
0_0_28631822_5885.cpp:8:16: error: 's' was not declared in this scope
     while(cin>>s)
                ^
0_0_28631822_5885.cpp:10:16: error: 'q' was not declared in this scope
         while(!q.empty()) q.pop();//清空优先队列 
                ^
0_0_28631822_5885.cpp:14:35: error: 'memset' was not declared in this scope
         memset(hash,0,sizeof(hash));
                                   ^
0_0_28631822_5885.cpp:25:16: error: 'q' was not declared in this scope
                q.push(hash[i]);
                ^
0_0_28631822_5885.cpp:28:14: error: 'q' was not declared in this scope
         m2 = q.size()==1?len:0;
              ^
0_0_28631822_5885.cpp:38:46: error: 'printf' was not declared in this scope
         printf("%d %d %.1f\n",m1,m2,m1*1.0/m2);
                                              ^


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-26 18:06:02, Gzip enabled