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_39671776_23061.cpp:62:2: error: expected ';' after class definition
   62 | }
      |  ^
      |  ;
0_0_39671776_23061.cpp: In member function 'bool Quene::full()':
0_0_39671776_23061.cpp:39:21: error: 'n' was not declared in this scope; did you mean 'in'?
   39 |     if ((end + 1) % n == begin) return true;
      |                     ^
      |                     in
0_0_39671776_23061.cpp: In member function 'void Quene::in(int)':
0_0_39671776_23061.cpp:43:13: error: cannot convert 'Quene::full' from type 'bool (Quene::)()' to type 'bool'
   43 |     if (full) return;
      |             ^
0_0_39671776_23061.cpp: In member function 'int Quene::out()':
0_0_39671776_23061.cpp:53:16: error: 'n' was not declared in this scope; did you mean 'in'?
   53 |       begin %= n;
      |                ^
      |                in
0_0_39671776_23061.cpp: In function 'int main()':
0_0_39671776_23061.cpp:83:22: error: cannot convert 'Stack::full' from type 'bool (Stack::)()' to type 'bool'
   83 |           if (st.full) cout << "Full" << endl;
      |                      ^
0_0_39671776_23061.cpp:99:22: error: cannot convert 'Quene::full' from type 'bool (Quene::)()' to type 'bool'
   99 |           if (qu.full) cout << "FUll" << endl;
      |                      ^


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-09-30 04:23:05, Gzip enabled