foo.cc: In function 'int Bachelor(int*, int*)':
foo.cc:23:30: error: expected primary-expression before '||' token
23 | if(i==1||i==3||i==5||i==7||||i==8||i==10||i==12)days=days+31;
| ^~
foo.cc:33:30: error: expected primary-expression before '||' token
33 | if(i==1||i==3||i==5||i==7||||i==8||i==10||i==12)days=days+31;
| ^~
foo.cc:41:45: error: expected primary-expression before '||' token
41 | if(ys[1]==1||ys[1]==3||ys[1]==5||ys[1]==7||||ys[1]==8||ys[1]==10||ys[1]==12)days=days+31;
| ^~
foo.cc:48:45: error: expected primary-expression before '||' token
48 | if(ye[1]==1||ye[1]==3||ye[1]==5||ye[1]==7||||ye[1]==8||ye[1]==10||ye[1]==12)days=days+31;
| ^~
foo.cc: In function 'int main()':
foo.cc:67:17: error: cannot convert 'long long int*' to 'int*'
67 | cout<<Bachelor(ys,ye)
| ^~
| |
| long long int*
foo.cc:13:18: note: initializing argument 1 of 'int Bachelor(int*, int*)'
13 | int Bachelor(int ys[],int ye[])
| ~~~~^~~~
[Hydro](https://hydro.ac)提供评测服务