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_34397793_20993.cpp:3:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
 int week1[7]={"Wednesday","Tuesday","Monday","Sunday","Saturday","Friday","Thursday"};
                                                                                     ^
0_0_34397793_20993.cpp:3:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
0_0_34397793_20993.cpp:3:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
0_0_34397793_20993.cpp:3:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
0_0_34397793_20993.cpp:3:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
0_0_34397793_20993.cpp:3:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
0_0_34397793_20993.cpp:3:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
0_0_34397793_20993.cpp:4:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
 int week2[7]={"Thursday","Friday","Saturday","Sunday","Monday","Tuesday","Wednesday"};
                                                                                     ^
0_0_34397793_20993.cpp:4:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
0_0_34397793_20993.cpp:4:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
0_0_34397793_20993.cpp:4:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
0_0_34397793_20993.cpp:4:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
0_0_34397793_20993.cpp:4:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
0_0_34397793_20993.cpp:4:85: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
0_0_34397793_20993.cpp: In function 'bool is_r(int)':
0_0_34397793_20993.cpp:11:26: error: 'yaer' was not declared in this scope
  else return (year%4==0&&yaer%100!=0)||year%400==0;
                          ^
0_0_34397793_20993.cpp: In function 'bool is_valid(int, int, int)':
0_0_34397793_20993.cpp:16:13: error: 'isr' was not declared in this scope
  if(isr(year)&&day>month2[month])return false;
             ^
0_0_34397793_20993.cpp:17:14: error: 'isr' was not declared in this scope
  if(!isr(year)&&day>month1[month])return false;
              ^
0_0_34397793_20993.cpp: In function 'int main()':
0_0_34397793_20993.cpp:37:19: error: 'isr' was not declared in this scope
      sum=(isr(year)?month2[month]:month1[month])-day;
                   ^
0_0_34397793_20993.cpp:53:19: error: 'isr' was not declared in this scope
      sum=(isr(1751)?month2[month]:month1[month])-day;
                   ^
0_0_34397793_20993.cpp:73:20: error: 'isr' was not declared in this scope
       sum+=isr(1752)?month2[i]:month1[i];
                    ^
0_0_34397793_20993.cpp:77:17: error: 'isr' was not declared in this scope
       sum+=isr(i)?366:365;
                 ^
0_0_34397793_20993.cpp:81:20: error: 'isr' was not declared in this scope
       sum+=isr(year)?month2[i]:month1[i];
                    ^
0_0_34397793_20993.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:46:26, Gzip enabled