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_21982744_28532.cpp: In function 'int ccmp(const void*, const void*)':
0_0_21982744_28532.cpp:21:67: error: expected ';' before numeric constant
              return (*(struct haha *)a).id>(*(struct haha *)b).id 1:-1;  
                                                                   ^
0_0_21982744_28532.cpp:21:68: error: expected ';' before ':' token
              return (*(struct haha *)a).id>(*(struct haha *)b).id 1:-1;  
                                                                    ^
0_0_21982744_28532.cpp:22:10: error: 'else' without a previous 'if'
          else return (*(struct haha *)a).count<(*(struct haha *)b).count 1:-1;  
          ^
0_0_21982744_28532.cpp:22:74: error: expected ';' before numeric constant
          else return (*(struct haha *)a).count<(*(struct haha *)b).count 1:-1;  
                                                                          ^
0_0_21982744_28532.cpp:22:75: error: expected ';' before ':' token
          else return (*(struct haha *)a).count<(*(struct haha *)b).count 1:-1;  
                                                                           ^


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-12-02 17:43:30, Gzip enabled