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


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-27 01:22:41, Gzip enabled