|
Erorile sunt
Could not find a match for 'std:: pair<long,long>:: pair()'
Cannot find default constructor to initialize array element of type 'std:: pair<long,long>:: pair()'
Could not find a match for 'std:: pair<long,long>:: pair()'
Practic eroarea pare a fi in zona asta a programului, dar nu vad ce trebuie schimbat:
TFraction sumFractions(TFraction& f1, TFraction& f2){
TFraction f;
simplifyFraction(f1); simplifyFraction(f2);
f.first=f1.first*f2.second+f1.second*f2.first;
f.second=f1.second*f2.second;
simplifyFraction(f);
return f;
}
|