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_36616056_17342.cpp:23:23: error: 'pair' has not been declared
     bool operator () (pair<int,int>a,pair<int,int>b){
                       ^
0_0_36616056_17342.cpp:23:27: error: expected ',' or '...' before '<' token
     bool operator () (pair<int,int>a,pair<int,int>b){
                           ^
0_0_36616056_17342.cpp: In member function 'bool cmp::operator()(int)':
0_0_36616056_17342.cpp:24:16: error: 'a' was not declared in this scope
         return a.first>b.first;
                ^
0_0_36616056_17342.cpp:24:24: error: 'b' was not declared in this scope
         return a.first>b.first;
                        ^
0_0_36616056_17342.cpp: In function 'void djsta(int)':
0_0_36616056_17342.cpp:28:5: error: 'priority_queue' was not declared in this scope
     priority_queue<pair<int,int>,vector<pair<int,int> >,cmp>q;
     ^
0_0_36616056_17342.cpp:28:20: error: 'pair' was not declared in this scope
     priority_queue<pair<int,int>,vector<pair<int,int> >,cmp>q;
                    ^
0_0_36616056_17342.cpp:28:25: error: expected primary-expression before 'int'
     priority_queue<pair<int,int>,vector<pair<int,int> >,cmp>q;
                         ^
0_0_36616056_17342.cpp:30:5: error: 'q' was not declared in this scope
     q.push({0,x});
     ^
0_0_36616056_17342.cpp: In function 'int main()':
0_0_36616056_17342.cpp:46:5: error: 'cin' was not declared in this scope
     cin>>t;
     ^
0_0_36616056_17342.cpp:50:31: error: 'memset' was not declared in this scope
         memset(dp,0,sizeof(dp));
                               ^
0_0_36616056_17342.cpp:69:51: error: 'max' was not declared in this scope
                 dp[j]=max(dp[j],dp[j-ans[i]]+ss[i]);
                                                   ^
0_0_36616056_17342.cpp:81:13: error: 'cout' was not declared in this scope
             cout<<k<<endl;
             ^
0_0_36616056_17342.cpp:81:22: error: 'endl' was not declared in this scope
             cout<<k<<endl;
                      ^
0_0_36616056_17342.cpp:84:13: error: 'cout' was not declared in this scope
             cout<<"impossible"<<endl;
             ^
0_0_36616056_17342.cpp:84:33: error: 'endl' was not declared in this scope
             cout<<"impossible"<<endl;
                                 ^


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-23 02:05:52, Gzip enabled