Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

各位大虾,救救小弟,为什么是compile error?????

Posted by quanjianan at 2005-07-19 21:19:53 on Problem 1663
#include "Stdio.h"
#include "Conio.h"

int main(void)
{
 unsigned int i,k,x,y;
 scanf("%d",&k);
 for(i=1;i<=k;i++)
 {
   scanf("%d%d",&x,&y);
   if (x==y)
     {
      if (x%2==1)
         printf("%d\n",x+y-1);
      else printf("%d\n",x+y);
      }
    else if (x==y+2)
           {
              if (x%2==1)
                 printf("%d\n",x+y-1);
              else printf("%d\n",x+y);
           }
    else printf("No Number");
 }

  return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator