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_28295466_29774.cpp: In function 'bool same(int, int)':
0_0_28295466_29774.cpp:39:7: error: request for member 'cost' in 'x', which is of non-class type 'int'
  if(x.cost != y.cost){ 
       ^
0_0_28295466_29774.cpp:39:17: error: request for member 'cost' in 'y', which is of non-class type 'int'
  if(x.cost != y.cost){ 
                 ^
0_0_28295466_29774.cpp:42:12: error: request for member 'flag' in 'x', which is of non-class type 'int'
   return x.flag < y.flag;
            ^
0_0_28295466_29774.cpp:42:21: error: request for member 'flag' in 'y', which is of non-class type 'int'
   return x.flag < y.flag;
                     ^


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-06-26 12:36:42, Gzip enabled