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_34397798_29955.cpp: In function 'bool is_r(int)':
0_0_34397798_29955.cpp:11:26: error: 'yaer' was not declared in this scope
  else return (year%4==0&&yaer%100!=0)||year%400==0;
                          ^
0_0_34397798_29955.cpp: In function 'bool is_valid(int, int, int)':
0_0_34397798_29955.cpp:16:13: error: 'isr' was not declared in this scope
  if(isr(year)&&day>month2[month])return false;
             ^
0_0_34397798_29955.cpp:17:14: error: 'isr' was not declared in this scope
  if(!isr(year)&&day>month1[month])return false;
              ^
0_0_34397798_29955.cpp: In function 'int main()':
0_0_34397798_29955.cpp:37:19: error: 'isr' was not declared in this scope
      sum=(isr(year)?month2[month]:month1[month])-day;
                   ^
0_0_34397798_29955.cpp:53:19: error: 'isr' was not declared in this scope
      sum=(isr(1751)?month2[month]:month1[month])-day;
                   ^
0_0_34397798_29955.cpp:73:20: error: 'isr' was not declared in this scope
       sum+=isr(1752)?month2[i]:month1[i];
                    ^
0_0_34397798_29955.cpp:77:17: error: 'isr' was not declared in this scope
       sum+=isr(i)?366:365;
                 ^
0_0_34397798_29955.cpp:81:20: error: 'isr' was not declared in this scope
       sum+=isr(year)?month2[i]:month1[i];
                    ^
0_0_34397798_29955.cpp:90:20: error: 'isr' was not declared in this scope
       sum+=isr(1752)?month2[i]:month1[i];
                    ^


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-25 04:30:18, Gzip enabled