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_33509094_25978.cpp:4:2: error: stray '#' in program
  int t;
  ^
0_0_33509094_25978.cpp:5:2: error: stray '#' in program
  if (a<b)
  ^
0_0_33509094_25978.cpp:6:2: error: stray '#' in program
  {
  ^
0_0_33509094_25978.cpp:7:2: error: stray '#' in program
   t=a;a=b;b=t;
  ^
0_0_33509094_25978.cpp:7:8: error: stray '#' in program
   t=a;a=b;b=t;
        ^
0_0_33509094_25978.cpp:8:2: error: stray '#' in program
  }
  ^
0_0_33509094_25978.cpp:9:2: error: stray '#' in program
  while (b!=0)
  ^
0_0_33509094_25978.cpp:10:2: error: stray '#' in program
  {
  ^
0_0_33509094_25978.cpp:11:2: error: stray '#' in program
   t=a%b;
  ^
0_0_33509094_25978.cpp:11:8: error: stray '#' in program
   t=a%b;
        ^
0_0_33509094_25978.cpp:12:2: error: stray '#' in program
   a=b;b=t;
  ^
0_0_33509094_25978.cpp:12:8: error: stray '#' in program
   a=b;b=t;
        ^
0_0_33509094_25978.cpp:13:2: error: stray '#' in program
  }
  ^
0_0_33509094_25978.cpp:14:2: error: stray '#' in program
  return a;
  ^
0_0_33509094_25978.cpp:18:2: error: stray '#' in program
  int a,b,min;
  ^
0_0_33509094_25978.cpp:19:2: error: stray '#' in program
  while (scanf("%d%d",&a,&b)!=EOF)
  ^
0_0_33509094_25978.cpp:20:2: error: stray '#' in program
  {
  ^
0_0_33509094_25978.cpp:21:2: error: stray '#' in program
   min=a/max(a,b)*b;
  ^
0_0_33509094_25978.cpp:21:8: error: stray '#' in program
   min=a/max(a,b)*b;
        ^
0_0_33509094_25978.cpp:22:2: error: stray '#' in program
   printf("%d\n",min);
  ^
0_0_33509094_25978.cpp:22:8: error: stray '#' in program
   printf("%d\n",min);
        ^
0_0_33509094_25978.cpp:23:2: error: stray '#' in program
  }
  ^
0_0_33509094_25978.cpp:24:2: error: stray '#' in program
  return 0;
  ^
0_0_33509094_25978.cpp: In function 'int max(int, int)':
0_0_33509094_25978.cpp:4:3: error: lvalue required as unary '&' operand
  int t;
   ^
0_0_33509094_25978.cpp:5:3: error: lvalue required as unary '&' operand
  if (a<b)
   ^
0_0_33509094_25978.cpp:6:3: error: lvalue required as unary '&' operand
  {
   ^
0_0_33509094_25978.cpp:7:3: error: lvalue required as unary '&' operand
   t=a;a=b;b=t;
   ^
0_0_33509094_25978.cpp:7:9: error: lvalue required as unary '&' operand
   t=a;a=b;b=t;
         ^
0_0_33509094_25978.cpp:8:3: error: lvalue required as unary '&' operand
  }
   ^
0_0_33509094_25978.cpp:9:3: error: lvalue required as unary '&' operand
  while (b!=0)
   ^
0_0_33509094_25978.cpp:10:3: error: lvalue required as unary '&' operand
  {
   ^
0_0_33509094_25978.cpp:11:3: error: lvalue required as unary '&' operand
   t=a%b;
   ^
0_0_33509094_25978.cpp:11:9: error: lvalue required as unary '&' operand
   t=a%b;
         ^
0_0_33509094_25978.cpp:12:3: error: lvalue required as unary '&' operand
   a=b;b=t;
   ^
0_0_33509094_25978.cpp:12:9: error: lvalue required as unary '&' operand
   a=b;b=t;
         ^
0_0_33509094_25978.cpp:13:3: error: lvalue required as unary '&' operand
  }
   ^
0_0_33509094_25978.cpp:14:3: error: lvalue required as unary '&' operand
  return a;
   ^
0_0_33509094_25978.cpp: In function 'int main()':
0_0_33509094_25978.cpp:18:3: error: lvalue required as unary '&' operand
  int a,b,min;
   ^
0_0_33509094_25978.cpp:19:3: error: lvalue required as unary '&' operand
  while (scanf("%d%d",&a,&b)!=EOF)
   ^
0_0_33509094_25978.cpp:20:3: error: lvalue required as unary '&' operand
  {
   ^
0_0_33509094_25978.cpp:21:3: error: lvalue required as unary '&' operand
   min=a/max(a,b)*b;
   ^
0_0_33509094_25978.cpp:21:9: error: lvalue required as unary '&' operand
   min=a/max(a,b)*b;
         ^
0_0_33509094_25978.cpp:22:3: error: lvalue required as unary '&' operand
   printf("%d\n",min);
   ^
0_0_33509094_25978.cpp:22:9: error: lvalue required as unary '&' operand
   printf("%d\n",min);
         ^
0_0_33509094_25978.cpp:23:3: error: lvalue required as unary '&' operand
  }
   ^
0_0_33509094_25978.cpp:24: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-12-02 03:41:12, Gzip enabled