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;
^
|