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