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_33184971_30509.cpp:11:2: error: stray '#' in program
    num[i]=num[i-1]+num[i-2];
  ^
0_0_33184971_30509.cpp:11:8: error: stray '#' in program
    num[i]=num[i-1]+num[i-2];
        ^
0_0_33184971_30509.cpp:15:2: error: stray '#' in program
    for(i=0;i<44;i++)
  ^
0_0_33184971_30509.cpp:15:8: error: stray '#' in program
    for(i=0;i<44;i++)
        ^
0_0_33184971_30509.cpp:16:2: error: stray '#' in program
    {
  ^
0_0_33184971_30509.cpp:16:8: error: stray '#' in program
    {
        ^
0_0_33184971_30509.cpp:17:2: error: stray '#' in program
     if(n==num[i]) break;
  ^
0_0_33184971_30509.cpp:17:8: error: stray '#' in program
     if(n==num[i]) break;
        ^
0_0_33184971_30509.cpp:17:14: error: stray '#' in program
     if(n==num[i]) break;
              ^
0_0_33184971_30509.cpp:18:2: error: stray '#' in program
    }
  ^
0_0_33184971_30509.cpp:18:8: error: stray '#' in program
    }
        ^
0_0_33184971_30509.cpp:19:2: error: stray '#' in program
    if(i==44)cout<<"First win"<<endl;
  ^
0_0_33184971_30509.cpp:19:8: error: stray '#' in program
    if(i==44)cout<<"First win"<<endl;
        ^
0_0_33184971_30509.cpp:20:2: error: stray '#' in program
    else cout<<"Second win"<<endl;
  ^
0_0_33184971_30509.cpp:20:8: error: stray '#' in program
    else cout<<"Second win"<<endl;
        ^
0_0_33184971_30509.cpp: In function 'int main()':
0_0_33184971_30509.cpp:11:3: error: lvalue required as unary '&' operand
    num[i]=num[i-1]+num[i-2];
   ^
0_0_33184971_30509.cpp:11:9: error: lvalue required as unary '&' operand
    num[i]=num[i-1]+num[i-2];
         ^
0_0_33184971_30509.cpp:15:3: error: lvalue required as unary '&' operand
    for(i=0;i<44;i++)
   ^
0_0_33184971_30509.cpp:15:9: error: lvalue required as unary '&' operand
    for(i=0;i<44;i++)
         ^
0_0_33184971_30509.cpp:16:3: error: lvalue required as unary '&' operand
    {
   ^
0_0_33184971_30509.cpp:16:9: error: lvalue required as unary '&' operand
    {
         ^
0_0_33184971_30509.cpp:17:3: error: lvalue required as unary '&' operand
     if(n==num[i]) break;
   ^
0_0_33184971_30509.cpp:17:9: error: lvalue required as unary '&' operand
     if(n==num[i]) break;
         ^
0_0_33184971_30509.cpp:17:15: error: lvalue required as unary '&' operand
     if(n==num[i]) break;
               ^
0_0_33184971_30509.cpp:18:3: error: lvalue required as unary '&' operand
    }
   ^
0_0_33184971_30509.cpp:18:9: error: lvalue required as unary '&' operand
    }
         ^
0_0_33184971_30509.cpp:19:3: error: lvalue required as unary '&' operand
    if(i==44)cout<<"First win"<<endl;
   ^
0_0_33184971_30509.cpp:19:9: error: lvalue required as unary '&' operand
    if(i==44)cout<<"First win"<<endl;
         ^
0_0_33184971_30509.cpp:20:3: error: lvalue required as unary '&' operand
    else cout<<"Second win"<<endl;
   ^
0_0_33184971_30509.cpp:20:9: error: lvalue required as unary '&' operand
    else cout<<"Second win"<<endl;
         ^
0_0_33184971_30509.cpp:20:14: error: 'else' without a previous 'if'
    else cout<<"Second win"<<endl;
              ^


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-17 12:37:13, Gzip enabled