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_24736609_18237.cpp: In function 'int year(int)':
0_0_24736609_18237.cpp:28:13: error: invalid operands of types 'int(int)' and 'int' to binary 'operator%'
  if((year % 4 == 0 && year % 4 != 0) || year % 400 == 0)
             ^
0_0_24736609_18237.cpp:28:30: error: invalid operands of types 'int(int)' and 'int' to binary 'operator%'
  if((year % 4 == 0 && year % 4 != 0) || year % 400 == 0)
                              ^
0_0_24736609_18237.cpp:28:48: error: invalid operands of types 'int(int)' and 'int' to binary 'operator%'
  if((year % 4 == 0 && year % 4 != 0) || year % 400 == 0)
                                                ^


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-10-06 23:27:51, Gzip enabled