Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

C:\temp\303277\Main.cpp(8) : error C2106: '=' : left operand must be l-value,这种错怎么改????急!急!急!!!!

Posted by 904013041 at 2005-01-02 12:33:10 on Problem 1664
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator