| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
C:\temp\303277\Main.cpp(8) : error C2106: '=' : left operand must be l-value,这种错怎么改????急!急!急!!!!#include <stdio.h>
#include <iostream.h>
#include <malloc.h>
int f(int x,int y){
if(x<y)
y=x;
if(x==0)
f(x,y)==1;
if(y==1)
f(x,y)==1;
return f(x,y-1)+f(x-y,y);
}
void main(){
int t,i,x,y;
cin>>t;
for(i=1;i<=t;i++){
cin>>x>>y;
cout<<f(x,y)<<endl;
}
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator