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