0_0_22451631_10048.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
#include #include #include #include #include #include const int N=1005;
^
0_0_22451631_10048.cpp:6:1: error: 'priority_queueq' does not name a type
priority_queueq;
^
0_0_22451631_10048.cpp:7:1: error: 'vectorv' does not name a type
vectorv[N];
^
0_0_22451631_10048.cpp: In function 'int main()':
0_0_22451631_10048.cpp:17:25: error: expected ';' before '{' token
for(int i=0;i { scanf("%d %d",&h,&p); int x=min(n,H-h); v[x].push_back(p); } int s=0; for(int i=1;i<=n;i++) { for(;q.size()>=i;q.pop()) s+=q.top(); for(int j=0;j { s+=v[i][j]; q.push(-v[i][j]); } for(;q.size()>i+1;q.pop()) s+=q.top(); ans=max(ans,s); } printf("%d\n",ans); }
^
0_0_22451631_10048.cpp:17:25: error: expected primary-expression before '{' token
0_0_22451631_10048.cpp:17:25: error: expected ')' before '{' token
0_0_22451631_10048.cpp:17:103: error: 'v' was not declared in this scope
for(int i=0;i { scanf("%d %d",&h,&p); int x=min(n,H-h); v[x].push_back(p); } int s=0; for(int i=1;i<=n;i++) { for(;q.size()>=i;q.pop()) s+=q.top(); for(int j=0;j { s+=v[i][j]; q.push(-v[i][j]); } for(;q.size()>i+1;q.pop()) s+=q.top(); ans=max(ans,s); } printf("%d\n",ans); }
^
0_0_22451631_10048.cpp:17:206: error: 'q' was not declared in this scope
for(int i=0;i { scanf("%d %d",&h,&p); int x=min(n,H-h); v[x].push_back(p); } int s=0; for(int i=1;i<=n;i++) { for(;q.size()>=i;q.pop()) s+=q.top(); for(int j=0;j { s+=v[i][j]; q.push(-v[i][j]); } for(;q.size()>i+1;q.pop()) s+=q.top(); ans=max(ans,s); } printf("%d\n",ans); }
^
0_0_22451631_10048.cpp:17:285: error: expected ';' before '{' token
for(int i=0;i { scanf("%d %d",&h,&p); int x=min(n,H-h); v[x].push_back(p); } int s=0; for(int i=1;i<=n;i++) { for(;q.size()>=i;q.pop()) s+=q.top(); for(int j=0;j { s+=v[i][j]; q.push(-v[i][j]); } for(;q.size()>i+1;q.pop()) s+=q.top(); ans=max(ans,s); } printf("%d\n",ans); }
^
0_0_22451631_10048.cpp:17:285: error: expected primary-expression before '{' token
0_0_22451631_10048.cpp:17:285: error: expected ')' before '{' token
0_0_22451631_10048.cpp:17:302: error: 'v' was not declared in this scope
for(int i=0;i { scanf("%d %d",&h,&p); int x=min(n,H-h); v[x].push_back(p); } int s=0; for(int i=1;i<=n;i++) { for(;q.size()>=i;q.pop()) s+=q.top(); for(int j=0;j { s+=v[i][j]; q.push(-v[i][j]); } for(;q.size()>i+1;q.pop()) s+=q.top(); ans=max(ans,s); } printf("%d\n",ans); }
^
0_0_22451631_10048.cpp:17:323: error: 'q' was not declared in this scope
for(int i=0;i { scanf("%d %d",&h,&p); int x=min(n,H-h); v[x].push_back(p); } int s=0; for(int i=1;i<=n;i++) { for(;q.size()>=i;q.pop()) s+=q.top(); for(int j=0;j { s+=v[i][j]; q.push(-v[i][j]); } for(;q.size()>i+1;q.pop()) s+=q.top(); ans=max(ans,s); } printf("%d\n",ans); }
^
0_0_22451631_10048.cpp:17:364: error: 'q' was not declared in this scope
for(int i=0;i { scanf("%d %d",&h,&p); int x=min(n,H-h); v[x].push_back(p); } int s=0; for(int i=1;i<=n;i++) { for(;q.size()>=i;q.pop()) s+=q.top(); for(int j=0;j { s+=v[i][j]; q.push(-v[i][j]); } for(;q.size()>i+1;q.pop()) s+=q.top(); ans=max(ans,s); } printf("%d\n",ans); }
^
|