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_31227046_9284.cpp: In function 'bool cmp(node, node)':
0_0_31227046_9284.cpp:8:9: error: 'int node::price' is private
     int price;
         ^
0_0_31227046_9284.cpp:13:14: error: within this context
     return a.price<b.price;   //按价格由少到多排序
              ^
0_0_31227046_9284.cpp:8:9: error: 'int node::price' is private
     int price;
         ^
0_0_31227046_9284.cpp:13:22: error: within this context
     return a.price<b.price;   //按价格由少到多排序
                      ^
0_0_31227046_9284.cpp: In function 'int main()':
0_0_31227046_9284.cpp:6:9: error: 'int node::NO' is private
     int NO;
         ^
0_0_31227046_9284.cpp:27:23: error: within this context
             cin>>d[i].NO>>d[i].num>>d[i].price;
                       ^
0_0_31227046_9284.cpp:7:9: error: 'int node::num' is private
     int num;
         ^
0_0_31227046_9284.cpp:27:32: error: within this context
             cin>>d[i].NO>>d[i].num>>d[i].price;
                                ^
0_0_31227046_9284.cpp:8:9: error: 'int node::price' is private
     int price;
         ^
0_0_31227046_9284.cpp:27:42: error: within this context
             cin>>d[i].NO>>d[i].num>>d[i].price;
                                          ^
0_0_31227046_9284.cpp:7:9: error: 'int node::num' is private
     int num;
         ^
0_0_31227046_9284.cpp:38:28: error: within this context
                 if(m<=d[j].num)    // 房间数量够
                            ^
0_0_31227046_9284.cpp:6:9: error: 'int node::NO' is private
     int NO;
         ^
0_0_31227046_9284.cpp:40:32: error: within this context
                     cout<<d[j].NO<<endl;
                                ^
0_0_31227046_9284.cpp:7:9: error: 'int node::num' is private
     int num;
         ^
0_0_31227046_9284.cpp:41:26: error: within this context
                     d[j].num-=m;  //房间数量减少
                          ^


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 05:17:56, Gzip enabled