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_29208785_5025.cpp:4:2: error: stray '#' in program
    if(n==0)  return 0;
  ^
0_0_29208785_5025.cpp:4:8: error: stray '#' in program
    if(n==0)  return 0;
        ^
0_0_29208785_5025.cpp:4:23: error: stray '#' in program
    if(n==0)  return 0;
                       ^
0_0_29208785_5025.cpp:5:2: error: stray '#' in program
    if(n==1)  return 3;
  ^
0_0_29208785_5025.cpp:5:8: error: stray '#' in program
    if(n==1)  return 3;
        ^
0_0_29208785_5025.cpp:5:23: error: stray '#' in program
    if(n==1)  return 3;
                       ^
0_0_29208785_5025.cpp:6:2: error: stray '#' in program
    if(n==2)  return 7;  
  ^
0_0_29208785_5025.cpp:6:8: error: stray '#' in program
    if(n==2)  return 7;  
        ^
0_0_29208785_5025.cpp:6:23: error: stray '#' in program
    if(n==2)  return 7;  
                       ^
0_0_29208785_5025.cpp:6:39: error: stray '#' in program
    if(n==2)  return 7;  
                                       ^
0_0_29208785_5025.cpp:7:2: error: stray '#' in program
    else return 2*f(n-1)+f(n-2);
  ^
0_0_29208785_5025.cpp:7:8: error: stray '#' in program
    else return 2*f(n-1)+f(n-2);
        ^
0_0_29208785_5025.cpp:11:2: error: stray '#' in program
     int n,m;
  ^
0_0_29208785_5025.cpp:11:8: error: stray '#' in program
     int n,m;
        ^
0_0_29208785_5025.cpp:11:14: error: stray '#' in program
     int n,m;
              ^
0_0_29208785_5025.cpp:12:2: error: stray '#' in program
     scanf("%d",&n);
  ^
0_0_29208785_5025.cpp:12:8: error: stray '#' in program
     scanf("%d",&n);
        ^
0_0_29208785_5025.cpp:12:14: error: stray '#' in program
     scanf("%d",&n);
              ^
0_0_29208785_5025.cpp:13:2: error: stray '#' in program
     while(n--)
  ^
0_0_29208785_5025.cpp:13:8: error: stray '#' in program
     while(n--)
        ^
0_0_29208785_5025.cpp:13:14: error: stray '#' in program
     while(n--)
              ^
0_0_29208785_5025.cpp:14:2: error: stray '#' in program
     {
  ^
0_0_29208785_5025.cpp:14:8: error: stray '#' in program
     {
        ^
0_0_29208785_5025.cpp:14:14: error: stray '#' in program
     {
              ^
0_0_29208785_5025.cpp:15:2: error: stray '#' in program
       scanf("%d",&m);
  ^
0_0_29208785_5025.cpp:15:8: error: stray '#' in program
       scanf("%d",&m);
        ^
0_0_29208785_5025.cpp:15:14: error: stray '#' in program
       scanf("%d",&m);
              ^
0_0_29208785_5025.cpp:15:20: error: stray '#' in program
       scanf("%d",&m);
                    ^
0_0_29208785_5025.cpp:15:26: error: stray '#' in program
       scanf("%d",&m);
                          ^
0_0_29208785_5025.cpp:16:2: error: stray '#' in program
       printf("%d\n",f(m));
  ^
0_0_29208785_5025.cpp:16:8: error: stray '#' in program
       printf("%d\n",f(m));
        ^
0_0_29208785_5025.cpp:16:14: error: stray '#' in program
       printf("%d\n",f(m));
              ^
0_0_29208785_5025.cpp:16:20: error: stray '#' in program
       printf("%d\n",f(m));
                    ^
0_0_29208785_5025.cpp:16:26: error: stray '#' in program
       printf("%d\n",f(m));
                          ^
0_0_29208785_5025.cpp:17:2: error: stray '#' in program
     }
  ^
0_0_29208785_5025.cpp:17:8: error: stray '#' in program
     }
        ^
0_0_29208785_5025.cpp:17:14: error: stray '#' in program
     }
              ^
0_0_29208785_5025.cpp:18:11: error: stray '#' in program
 return 0;                
           ^
0_0_29208785_5025.cpp:18:17: error: stray '#' in program
 return 0;                
                 ^
0_0_29208785_5025.cpp:18:23: error: stray '#' in program
 return 0;                
                       ^
0_0_29208785_5025.cpp:18:29: error: stray '#' in program
 return 0;                
                             ^
0_0_29208785_5025.cpp:18:35: error: stray '#' in program
 return 0;                
                                   ^
0_0_29208785_5025.cpp:18:41: error: stray '#' in program
 return 0;                
                                         ^
0_0_29208785_5025.cpp:18:47: error: stray '#' in program
 return 0;                
                                               ^
0_0_29208785_5025.cpp:18:53: error: stray '#' in program
 return 0;                
                                                     ^
0_0_29208785_5025.cpp:18:59: error: stray '#' in program
 return 0;                
                                                           ^
0_0_29208785_5025.cpp:18:65: error: stray '#' in program
 return 0;                
                                                                 ^
0_0_29208785_5025.cpp:18:71: error: stray '#' in program
 return 0;                
                                                                       ^
0_0_29208785_5025.cpp:18:77: error: stray '#' in program
 return 0;                
                                                                             ^
0_0_29208785_5025.cpp:18:83: error: stray '#' in program
 return 0;                
                                                                                   ^
0_0_29208785_5025.cpp:18:89: error: stray '#' in program
 return 0;                
                                                                                         ^
0_0_29208785_5025.cpp:18:95: error: stray '#' in program
 return 0;                
                                                                                               ^
0_0_29208785_5025.cpp: In function 'int f(int)':
0_0_29208785_5025.cpp:4:3: error: lvalue required as unary '&' operand
    if(n==0)  return 0;
   ^
0_0_29208785_5025.cpp:4:9: error: lvalue required as unary '&' operand
    if(n==0)  return 0;
         ^
0_0_29208785_5025.cpp:4:24: error: lvalue required as unary '&' operand
    if(n==0)  return 0;
                        ^
0_0_29208785_5025.cpp:5:3: error: lvalue required as unary '&' operand
    if(n==1)  return 3;
   ^
0_0_29208785_5025.cpp:5:9: error: lvalue required as unary '&' operand
    if(n==1)  return 3;
         ^
0_0_29208785_5025.cpp:5:24: error: lvalue required as unary '&' operand
    if(n==1)  return 3;
                        ^
0_0_29208785_5025.cpp:6:3: error: lvalue required as unary '&' operand
    if(n==2)  return 7;  
   ^
0_0_29208785_5025.cpp:6:9: error: lvalue required as unary '&' operand
    if(n==2)  return 7;  
         ^
0_0_29208785_5025.cpp:6:24: error: lvalue required as unary '&' operand
    if(n==2)  return 7;  
                        ^
0_0_29208785_5025.cpp:6:40: error: lvalue required as unary '&' operand
    if(n==2)  return 7;  
                                        ^
0_0_29208785_5025.cpp:7:3: error: lvalue required as unary '&' operand
    else return 2*f(n-1)+f(n-2);
   ^
0_0_29208785_5025.cpp:7:9: error: lvalue required as unary '&' operand
    else return 2*f(n-1)+f(n-2);
         ^
0_0_29208785_5025.cpp:7:14: error: 'else' without a previous 'if'
    else return 2*f(n-1)+f(n-2);
              ^
0_0_29208785_5025.cpp: In function 'int main()':
0_0_29208785_5025.cpp:11:3: error: lvalue required as unary '&' operand
     int n,m;
   ^
0_0_29208785_5025.cpp:11:9: error: lvalue required as unary '&' operand
     int n,m;
         ^
0_0_29208785_5025.cpp:11:15: error: lvalue required as unary '&' operand
     int n,m;
               ^
0_0_29208785_5025.cpp:12:3: error: lvalue required as unary '&' operand
     scanf("%d",&n);
   ^
0_0_29208785_5025.cpp:12:9: error: lvalue 


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-11-25 19:45:46, Gzip enabled