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_33414524_2648.cpp:5:2: error: stray '#' in program
     int i=1;
  ^
0_0_33414524_2648.cpp:5:9: error: stray '#' in program
     int i=1;
         ^
0_0_33414524_2648.cpp:6:2: error: stray '#' in program
     while(a!=1){
  ^
0_0_33414524_2648.cpp:6:9: error: stray '#' in program
     while(a!=1){
         ^
0_0_33414524_2648.cpp:7:2: error: stray '#' in program
     if(a%2==1) a=3*a+1;
  ^
0_0_33414524_2648.cpp:7:9: error: stray '#' in program
     if(a%2==1) a=3*a+1;
         ^
0_0_33414524_2648.cpp:8:2: error: stray '#' in program
     else a=a/2;
  ^
0_0_33414524_2648.cpp:8:9: error: stray '#' in program
     else a=a/2;
         ^
0_0_33414524_2648.cpp:9:2: error: stray '#' in program
     i++;
  ^
0_0_33414524_2648.cpp:9:9: error: stray '#' in program
     i++;
         ^
0_0_33414524_2648.cpp:10:2: error: stray '#' in program
     }
  ^
0_0_33414524_2648.cpp:10:9: error: stray '#' in program
     }
         ^
0_0_33414524_2648.cpp:11:2: error: stray '#' in program
     return i;
  ^
0_0_33414524_2648.cpp:11:9: error: stray '#' in program
     return i;
         ^
0_0_33414524_2648.cpp:15:2: error: stray '#' in program
     int m,n,sum,i,f,a;
  ^
0_0_33414524_2648.cpp:15:9: error: stray '#' in program
     int m,n,sum,i,f,a;
         ^
0_0_33414524_2648.cpp:16:2: error: stray '#' in program
     while(scanf("%d%d",&m,&n)!=EOF){
  ^
0_0_33414524_2648.cpp:16:9: error: stray '#' in program
     while(scanf("%d%d",&m,&n)!=EOF){
         ^
0_0_33414524_2648.cpp:17:2: error: stray '#' in program
         f=0;
  ^
0_0_33414524_2648.cpp:17:9: error: stray '#' in program
         f=0;
         ^
0_0_33414524_2648.cpp:17:16: error: stray '#' in program
         f=0;
                ^
0_0_33414524_2648.cpp:17:23: error: stray '#' in program
         f=0;
                       ^
0_0_33414524_2648.cpp:18:2: error: stray '#' in program
         if(m>n){ i=m,m=n,n=i; f=1;} //¡À¡êÖ¡èm<n;
  ^
0_0_33414524_2648.cpp:18:9: error: stray '#' in program
         if(m>n){ i=m,m=n,n=i; f=1;} //¡À¡êÖ¡èm<n;
         ^
0_0_33414524_2648.cpp:18:16: error: stray '#' in program
         if(m>n){ i=m,m=n,n=i; f=1;} //¡À¡êÖ¡èm<n;
                ^
0_0_33414524_2648.cpp:18:23: error: stray '#' in program
         if(m>n){ i=m,m=n,n=i; f=1;} //¡À¡êÖ¡èm<n;
                       ^
0_0_33414524_2648.cpp:19:2: error: stray '#' in program
         sum=0;
  ^
0_0_33414524_2648.cpp:19:9: error: stray '#' in program
         sum=0;
         ^
0_0_33414524_2648.cpp:19:16: error: stray '#' in program
         sum=0;
                ^
0_0_33414524_2648.cpp:19:23: error: stray '#' in program
         sum=0;
                       ^
0_0_33414524_2648.cpp:20:2: error: stray '#' in program
         for(i=m;i<=n;i++){
  ^
0_0_33414524_2648.cpp:20:9: error: stray '#' in program
         for(i=m;i<=n;i++){
         ^
0_0_33414524_2648.cpp:20:16: error: stray '#' in program
         for(i=m;i<=n;i++){
                ^
0_0_33414524_2648.cpp:20:23: error: stray '#' in program
         for(i=m;i<=n;i++){
                       ^
0_0_33414524_2648.cpp:21:2: error: stray '#' in program
             a=bingbao(i);
  ^
0_0_33414524_2648.cpp:21:9: error: stray '#' in program
             a=bingbao(i);
         ^
0_0_33414524_2648.cpp:21:16: error: stray '#' in program
             a=bingbao(i);
                ^
0_0_33414524_2648.cpp:21:23: error: stray '#' in program
             a=bingbao(i);
                       ^
0_0_33414524_2648.cpp:21:30: error: stray '#' in program
             a=bingbao(i);
                              ^
0_0_33414524_2648.cpp:21:37: error: stray '#' in program
             a=bingbao(i);
                                     ^
0_0_33414524_2648.cpp:22:2: error: stray '#' in program
             if(a>sum) sum=a;
  ^
0_0_33414524_2648.cpp:22:9: error: stray '#' in program
             if(a>sum) sum=a;
         ^
0_0_33414524_2648.cpp:22:16: error: stray '#' in program
             if(a>sum) sum=a;
                ^
0_0_33414524_2648.cpp:22:23: error: stray '#' in program
             if(a>sum) sum=a;
                       ^
0_0_33414524_2648.cpp:22:30: error: stray '#' in program
             if(a>sum) sum=a;
                              ^
0_0_33414524_2648.cpp:22:37: error: stray '#' in program
             if(a>sum) sum=a;
                                     ^
0_0_33414524_2648.cpp:23:2: error: stray '#' in program
         }
  ^
0_0_33414524_2648.cpp:23:9: error: stray '#' in program
         }
         ^
0_0_33414524_2648.cpp:23:16: error: stray '#' in program
         }
                ^
0_0_33414524_2648.cpp:23:23: error: stray '#' in program
         }
                       ^
0_0_33414524_2648.cpp:24:2: error: stray '#' in program
         if(f) printf("%d %d %d\n",n,m,sum);
  ^
0_0_33414524_2648.cpp:24:9: error: stray '#' in program
         if(f) printf("%d %d %d\n",n,m,sum);
         ^
0_0_33414524_2648.cpp:24:16: error: stray '#' in program
         if(f) printf("%d %d %d\n",n,m,sum);
                ^
0_0_33414524_2648.cpp:24:23: error: stray '#' in program
         if(f) printf("%d %d %d\n",n,m,sum);
                       ^
0_0_33414524_2648.cpp:25:2: error: stray '#' in program
         else printf("%d %d %d\n",m,n,sum);
  ^
0_0_33414524_2648.cpp:25:9: error: stray '#' in program
         else printf("%d %d %d\n",m,n,sum);
         ^
0_0_33414524_2648.cpp:25:16: error: stray '#' in program
         else printf("%d %d %d\n",m,n,sum);
                ^
0_0_33414524_2648.cpp:25:23: error: stray '#' in program
         else printf("%d %d %d\n",m,n,sum);
                       ^
0_0_33414524_2648.cpp:26:2: error: stray '#' in program
     }
  ^
0_0_33414524_2648.cpp:26:9: error: stray '#' in program
     }
         ^
0_0_33414524_2648.cpp:27:2: error: stray '#' in program
     return 0;
  ^
0_0_33414524_2648.cpp:27:9: error: stray '#' in program
     return 0;
         ^
0_0_33414524_2648.cpp: In function 'int bingbao(int)':
0_0_33414524_2648.cpp:5:3: error: lvalue required as unary '&' operand
     int i=1;
   ^
0_0_33414524_2648.cpp:5:10: error: lvalue required as unary '&' operand
     int i=1;
          ^
0_0_33414524_2648.cpp:6:3: error: lvalue required as unary '&' operand
     while(a!=1){
   ^
0_0_33414524_2648.cpp:6:10: error: lvalue required as unary '&' operand
     while(a!=1){
          ^
0_0_33414524_2648.cpp:7:3: error: lvalue required as unary '&' operand
     if(a%2==1) a=3*a+1;
   ^
0_0_33414524_2648.cpp:7:10: error: lvalue required as unary '&' operand
     if(a%2==1) a=3*a+1;
          ^
0_0_33414524_2648.cpp:8:3: error: lvalue required as unary '&' operand
     else a=a/2;
   ^
0_0_33414524_2648.cpp:8:10: error: lvalue required as unary '&' operand
     else a=a/2;
          ^
0_0_33414524_2648.cpp:8:15: error: 'else' without a previous 'if'
     else a=a/2;
               ^
0_0_33414524_2648.cpp:9:3: error: lvalue required as unary '&' operand
     i++;
   ^
0_0_33414524_2648.cpp:9:10: error: lvalue required as unary '&' operand
     i++;
          ^
0_0_33414524_2648.cpp:10:3: error: lvalue required as unary '&' operand
     }
   ^
0_0_33414524_2648.cpp:10:10: error: lvalue required as unary '&' operand
     }
          ^
0_0_33414524_2648.cpp:11:3: error: lvalue required as unary '&' operand
     return i;
   ^
0_0_33414524_2648.cpp:11:10: error: lvalue required as unary '&' operand
     return i;
          ^
0_0_33414524_2648.cpp: In function 'int main()':
0_0_33414524_2648.cpp:15:3: error: lvalue required as unary '&' operand
     int m,n,sum,i,f,a;
   ^
0_0_33414524_2648.cpp:15:10: error: lvalue required as unary '&' operand
     int m,n,sum,i,f,a;
          ^
0_0_33414524_2648.cpp:16:3: error: lvalue required as unary '&' operand
     while(scanf("%d%d",&m,&n)!=EOF){
   ^
0_0_33414524_2648.cpp:16:10: error: lvalue required as unary '&' operand
     while(scanf("%d%d",&m,&n)!=EOF){
          ^
0_0_33414524_2648.cpp:17:3: error: lvalue required as unary '&' operand
         f=0;
   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 18:24:26, Gzip enabled