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_38755673_713.cpp: In function 'int main()':
0_0_38755673_713.cpp:26:34: error: request for member 'empty' in 'q', which is of non-class type 'int'
   26 |                         while(!q.empty()&&a[i]>=a[q.front()])
      |                                  ^~~~~
0_0_38755673_713.cpp:26:53: error: request for member 'front' in 'q', which is of non-class type 'int'
   26 |                         while(!q.empty()&&a[i]>=a[q.front()])
      |                                                     ^~~~~
0_0_38755673_713.cpp:27:35: error: request for member 'pop_front' in 'q', which is of non-class type 'int'
   27 |                                 q.pop_front();
      |                                   ^~~~~~~~~
0_0_38755673_713.cpp:28:27: error: request for member 'push_front' in 'q', which is of non-class type 'int'
   28 |                         q.push_front(i);
      |                           ^~~~~~~~~~
0_0_38755673_713.cpp:31:42: error: request for member 'empty' in 'q', which is of non-class type 'int'
   31 |                                 while(!q.empty()&&q.back()>=i+m)q.pop_back();
      |                                          ^~~~~
0_0_38755673_713.cpp:31:53: error: request for member 'back' in 'q', which is of non-class type 'int'
   31 |                                 while(!q.empty()&&q.back()>=i+m)q.pop_back();
      |                                                     ^~~~
0_0_38755673_713.cpp:31:67: error: request for member 'pop_back' in 'q', which is of non-class type 'int'
   31 |                                 while(!q.empty()&&q.back()>=i+m)q.pop_back();
      |                                                                   ^~~~~~~~
0_0_38755673_713.cpp:32:42: error: request for member 'back' in 'q', which is of non-class type 'int'
   32 |                                 x+=i^a[q.back()];
      |                                          ^~~~
0_0_38755673_713.cpp:33:38: error: request for member 'size' in 'q', which is of non-class type 'int'
   33 |                                 y+=q.size();
      |                                      ^~~~


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 00:43:22, Gzip enabled