0_0_15906028_28383.cpp:4:2: error: stray '#' in program
if((y%4==0&&y%100!=0)||y%400==0)
^
0_0_15906028_28383.cpp:7:2: error: stray '#' in program
return 1;
^
0_0_15906028_28383.cpp:7:8: error: stray '#' in program
return 1;
^
0_0_15906028_28383.cpp:8:2: error: stray '#' in program
else return 0;
^
0_0_15906028_28383.cpp:12:2: error: stray '#' in program
int year,month,day,i,j,sum;
^
0_0_15906028_28383.cpp:13:2: error: stray '#' in program
while(scanf("%d/%d/%d",&year,&month,&day)!=EOF)
^
0_0_15906028_28383.cpp:14:2: error: stray '#' in program
{
^
0_0_15906028_28383.cpp:15:2: error: stray '#' in program
sum=0;
^
0_0_15906028_28383.cpp:15:8: error: stray '#' in program
sum=0;
^
0_0_15906028_28383.cpp:16:2: error: stray '#' in program
if(month>8)
^
0_0_15906028_28383.cpp:16:8: error: stray '#' in program
if(month>8)
^
0_0_15906028_28383.cpp:16:25: error: stray '#' in program
if(month>8)
^
0_0_15906028_28383.cpp:17:2: error: stray '#' in program
sum+=(30*(month-1)+(month+1)/2+day);
^
0_0_15906028_28383.cpp:17:8: error: stray '#' in program
sum+=(30*(month-1)+(month+1)/2+day);
^
0_0_15906028_28383.cpp:17:14: error: stray '#' in program
sum+=(30*(month-1)+(month+1)/2+day);
^
0_0_15906028_28383.cpp:18:2: error: stray '#' in program
else sum+=(30*(month-1)+month/2+day);
^
0_0_15906028_28383.cpp:18:8: error: stray '#' in program
else sum+=(30*(month-1)+month/2+day);
^
0_0_15906028_28383.cpp:19:2: error: stray '#' in program
if(month>2)
^
0_0_15906028_28383.cpp:19:8: error: stray '#' in program
if(month>2)
^
0_0_15906028_28383.cpp:20:2: error: stray '#' in program
{
^
0_0_15906028_28383.cpp:20:8: error: stray '#' in program
{
^
0_0_15906028_28383.cpp:21:2: error: stray '#' in program
if(fun(year))sum--;
^
0_0_15906028_28383.cpp:21:8: error: stray '#' in program
if(fun(year))sum--;
^
0_0_15906028_28383.cpp:21:14: error: stray '#' in program
if(fun(year))sum--;
^
0_0_15906028_28383.cpp:22:2: error: stray '#' in program
else sum-=2;
^
0_0_15906028_28383.cpp:22:8: error: stray '#' in program
else sum-=2;
^
0_0_15906028_28383.cpp:22:14: error: stray '#' in program
else sum-=2;
^
0_0_15906028_28383.cpp:23:2: error: stray '#' in program
}
^
0_0_15906028_28383.cpp:23:8: error: stray '#' in program
}
^
0_0_15906028_28383.cpp:24:2: error: stray '#' in program
printf("%d\n",sum);
^
0_0_15906028_28383.cpp:24:8: error: stray '#' in program
printf("%d\n",sum);
^
0_0_15906028_28383.cpp:25:2: error: stray '#' in program
}
^
0_0_15906028_28383.cpp:26:2: error: stray '#' in program
return 0;
^
0_0_15906028_28383.cpp: In function 'int fun(int)':
0_0_15906028_28383.cpp:4:3: error: lvalue required as unary '&' operand
if((y%4==0&&y%100!=0)||y%400==0)
^
0_0_15906028_28383.cpp:7:3: error: lvalue required as unary '&' operand
return 1;
^
0_0_15906028_28383.cpp:7:9: error: lvalue required as unary '&' operand
return 1;
^
0_0_15906028_28383.cpp:8:3: error: lvalue required as unary '&' operand
else return 0;
^
0_0_15906028_28383.cpp:8:7: error: 'else' without a previous 'if'
else return 0;
^
0_0_15906028_28383.cpp: In function 'int main()':
0_0_15906028_28383.cpp:12:3: error: lvalue required as unary '&' operand
int year,month,day,i,j,sum;
^
0_0_15906028_28383.cpp:13:3: error: lvalue required as unary '&' operand
while(scanf("%d/%d/%d",&year,&month,&day)!=EOF)
^
0_0_15906028_28383.cpp:14:3: error: lvalue required as unary '&' operand
{
^
0_0_15906028_28383.cpp:15:3: error: lvalue required as unary '&' operand
sum=0;
^
0_0_15906028_28383.cpp:15:9: error: lvalue required as unary '&' operand
sum=0;
^
0_0_15906028_28383.cpp:16:3: error: lvalue required as unary '&' operand
if(month>8)
^
0_0_15906028_28383.cpp:16:9: error: lvalue required as unary '&' operand
if(month>8)
^
0_0_15906028_28383.cpp:16:26: error: lvalue required as unary '&' operand
if(month>8)
^
0_0_15906028_28383.cpp:17:3: error: lvalue required as unary '&' operand
sum+=(30*(month-1)+(month+1)/2+day);
^
0_0_15906028_28383.cpp:17:9: error: lvalue required as unary '&' operand
sum+=(30*(month-1)+(month+1)/2+day);
^
0_0_15906028_28383.cpp:17:15: error: lvalue required as unary '&' operand
sum+=(30*(month-1)+(month+1)/2+day);
^
0_0_15906028_28383.cpp:18:3: error: lvalue required as unary '&' operand
else sum+=(30*(month-1)+month/2+day);
^
0_0_15906028_28383.cpp:18:9: error: lvalue required as unary '&' operand
else sum+=(30*(month-1)+month/2+day);
^
0_0_15906028_28383.cpp:18:13: error: 'else' without a previous 'if'
else sum+=(30*(month-1)+month/2+day);
^
0_0_15906028_28383.cpp:19:3: error: lvalue required as unary '&' operand
if(month>2)
^
0_0_15906028_28383.cpp:19:9: error: lvalue required as unary '&' operand
if(month>2)
^
0_0_15906028_28383.cpp:20:3: error: lvalue required as unary '&' operand
{
^
0_0_15906028_28383.cpp:20:9: error: lvalue required as unary '&' operand
{
^
0_0_15906028_28383.cpp:21:3: error: lvalue required as unary '&' operand
if(fun(year))sum--;
^
0_0_15906028_28383.cpp:21:9: error: lvalue required as unary '&' operand
if(fun(year))sum--;
^
0_0_15906028_28383.cpp:21:15: error: lvalue required as unary '&' operand
if(fun(year))sum--;
^
0_0_15906028_28383.cpp:22:3: error: lvalue required as unary '&' operand
else sum-=2;
^
0_0_15906028_28383.cpp:22:9: error: lvalue required as unary '&' operand
else sum-=2;
^
0_0_15906028_28383.cpp:22:15: error: lvalue required as unary '&' operand
else sum-=2;
^
0_0_15906028_28383.cpp:22:19: error: 'else' without a previous 'if'
else sum-=2;
^
0_0_15906028_28383.cpp:23:3: error: lvalue required as unary '&' operand
}
^
0_0_15906028_28383.cpp:23:9: error: lvalue required as unary '&' operand
}
^
0_0_15906028_28383.cpp:24:3: error: lvalue required as unary '&' operand
printf("%d\n",sum);
^
0_0_15906028_28383.cpp:24:9: error: lvalue required as unary '&' operand
printf("%d\n",sum);
^
0_0_15906028_28383.cpp:25:3: error: lvalue required as unary '&' operand
}
^
0_0_15906028_28383.cpp:26:3: error: lvalue required as unary '&' operand
return 0;
^
|