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_25070911_11058.cpp:7:1: error: 'll' does not name a type
 ll a[MAXN];  
 ^
0_0_25070911_11058.cpp:8:16: error: 'll' was not declared in this scope
 priority_queue<ll,vector<ll> , greater<ll> > q;  
                ^
0_0_25070911_11058.cpp:8:26: error: 'll' was not declared in this scope
 priority_queue<ll,vector<ll> , greater<ll> > q;  
                          ^
0_0_25070911_11058.cpp:8:28: error: template argument 1 is invalid
 priority_queue<ll,vector<ll> , greater<ll> > q;  
                            ^
0_0_25070911_11058.cpp:8:28: error: template argument 2 is invalid
0_0_25070911_11058.cpp:8:40: error: 'll' was not declared in this scope
 priority_queue<ll,vector<ll> , greater<ll> > q;  
                                        ^
0_0_25070911_11058.cpp:8:42: error: template argument 1 is invalid
 priority_queue<ll,vector<ll> , greater<ll> > q;  
                                          ^
0_0_25070911_11058.cpp:8:44: error: template argument 1 is invalid
 priority_queue<ll,vector<ll> , greater<ll> > q;  
                                            ^
0_0_25070911_11058.cpp:8:44: error: template argument 2 is invalid
0_0_25070911_11058.cpp:8:44: error: template argument 3 is invalid
0_0_25070911_11058.cpp:8:47: error: invalid type in declaration before ';' token
 priority_queue<ll,vector<ll> , greater<ll> > q;  
                                               ^
0_0_25070911_11058.cpp: In function 'int main()':
0_0_25070911_11058.cpp:17:27: error: 'a' was not declared in this scope
             scanf("%lld",&a[i]);q.push(a[i]);  
                           ^
0_0_25070911_11058.cpp:17:35: error: request for member 'push' in 'q', which is of non-class type 'int'
             scanf("%lld",&a[i]);q.push(a[i]);  
                                   ^
0_0_25070911_11058.cpp:19:9: error: 'll' was not declared in this scope
         ll ans=0;  
         ^
0_0_25070911_11058.cpp:20:18: error: request for member 'size' in 'q', which is of non-class type 'int'
         while (q.size()>=2)  
                  ^
0_0_25070911_11058.cpp:22:16: error: expected ';' before 'val'
             ll val=q.top(); q.pop();  
                ^
0_0_25070911_11058.cpp:22:31: error: request for member 'pop' in 'q', which is of non-class type 'int'
             ll val=q.top(); q.pop();  
                               ^
0_0_25070911_11058.cpp:23:13: error: 'val' was not declared in this scope
             val+=q.top(); q.pop();  
             ^
0_0_25070911_11058.cpp:23:20: error: request for member 'top' in 'q', which is of non-class type 'int'
             val+=q.top(); q.pop();  
                    ^
0_0_25070911_11058.cpp:23:29: error: request for member 'pop' in 'q', which is of non-class type 'int'
             val+=q.top(); q.pop();  
                             ^
0_0_25070911_11058.cpp:24:13: error: 'ans' was not declared in this scope
             ans+=val;  
             ^
0_0_25070911_11058.cpp:25:15: error: request for member 'push' in 'q', which is of non-class type 'int'
             q.push(val);  
               ^
0_0_25070911_11058.cpp:28:15: error: 'ans' was not declared in this scope
         cout<<ans<<endl;  
               ^
0_0_25070911_11058.cpp:29:19: error: request for member 'empty' in 'q', which is of non-class type 'int'
         while (!q.empty()) q.pop();    
                   ^
0_0_25070911_11058.cpp:29:30: error: request for member 'pop' in 'q', which is of non-class type 'int'
         while (!q.empty()) q.pop();    
                              ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-11 04:21:43, Gzip enabled