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_19222752_2419.cpp: In function 'int max(int, int)':
0_0_19222752_2419.cpp:28:38: error: expected ';' before 'inline'
 #define _max(x,y) ((x)>(y)?(x):(y))  inline 
                                      ^
0_0_19222752_2419.cpp:30:35: note: in expansion of macro '_max'
 int max(int x,int y){      return _max(x&0x70000000,y&0x70000000)|_max(x&0x0e000000,y&0x0e000000)|_max(x&0x01800000,y&0x01800000)|_max(x&0x00600000,y&0x00600000)|((x&0x001fffff)|(y&0x001fffff));  }   inline 
                                   ^
0_0_19222752_2419.cpp:30:66: error: expected unqualified-id before '|' token
 int max(int x,int y){      return _max(x&0x70000000,y&0x70000000)|_max(x&0x0e000000,y&0x0e000000)|_max(x&0x01800000,y&0x01800000)|_max(x&0x00600000,y&0x00600000)|((x&0x001fffff)|(y&0x001fffff));  }   inline 
                                                                  ^


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-01 08:12:01, Gzip enabled