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


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-09-30 22:16:34, Gzip enabled