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];
^
|