#923
Să se determine maximul a două fracţii date.
| Problema | FractiiMax | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64793424 | Utilizator | |
| Fișier | fractiimax.cpp | Dimensiune | 425 B |
| Data încărcării | 01 Iunie 2026, 17:42 | Scor/rezultat | Eroare de compilare |
fractiimax.cpp: In function ‘int main()’: fractiimax.cpp:7:5: error: ‘fractie’ was not declared in this scope 7 | fractie f1,f2; | ^~~~~~~ fractiimax.cpp:8:5: error: ‘f1’ was not declared in this scope; did you mean ‘y1’? 8 | f1.a=a; | ^~ | y1 fractiimax.cpp:8:10: error: ‘a’ was not declared in this scope 8 | f1.a=a; | ^ fractiimax.cpp:9:10: error: ‘b’ was not declared in this scope 9 | f1.b=b; | ^ fractiimax.cpp:10:5: error: ‘f2’ was not declared in this scope 10 | f2.a=c; | ^~ fractiimax.cpp:10:10: error: ‘c’ was not declared in this scope 10 | f2.a=c; | ^ fractiimax.cpp:11:10: error: ‘d’ was not declared in this scope 11 | f2.b=d; | ^ fractiimax.cpp:14:9: error: ‘m’ was not declared in this scope; did you mean ‘tm’? 14 | m=f1.a; | ^ | tm fractiimax.cpp:15:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’? 15 | n=f1.b; | ^ | yn fractiimax.cpp:19:9: error: ‘m’ was not declared in this scope; did you mean ‘tm’? 19 | m=f2.a; | ^ | tm fractiimax.cpp:20:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’? 20 | n=f2.b; | ^ | yn fractiimax.cpp:23:11: error: ‘m’ was not declared in this scope 23 | int x=m,y=n,r; | ^ fractiimax.cpp:24:11: error: ‘y’ was not declared in this scope 24 | while(y) | ^ fractiimax.cpp:26:9: error: ‘r’ was not declared in this scope 26 | r=x%y; | ^ fractiimax.cpp:31:5: error: ‘n’ was not declared in this scope 31 | n/=x; | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FractiiMax face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.