Problema | FractiiMax | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50185284 | Utilizator | |
Fișier | fractiimax.cpp | Dimensiune | 703 B |
Data încărcării | 30 Martie 2024, 12:43 | Scor / rezultat | Eroare de compilare |
fractiimax.cpp: In function 'int main()': fractiimax.cpp:23:19: error: invalid operands of types 'int' and 'float' to binary 'operator%' while(x.a%i==0 && x.b%i==0) ^ fractiimax.cpp:23:31: error: invalid operands of types 'int' and 'float' to binary 'operator%' while(x.a%i==0 && x.b%i==0) ^ fractiimax.cpp:29:6: error: 'm' was not declared in this scope m=x.a; ^ fractiimax.cpp:30:6: error: 'n' was not declared in this scope n=x.b; ^ fractiimax.cpp:37:19: error: invalid operands of types 'int' and 'float' to binary 'operator%' while(x.c%i==0 && x.d%i==0) ^ fractiimax.cpp:37:31: error: invalid operands of types 'int' and 'float' to binary 'operator%' while(x.c%i==0 && x.d%i==0) ^ fractiimax.cpp:43:6: error: 'm' was not declared in this scope m=x.c; ^ fractiimax.cpp:44:6: error: 'n' was not declared in this scope n=x.d; ^ fractiimax.cpp:46:11: error: 'm' was not declared in this scope cout<<m<<" "<<n; ^ fractiimax.cpp:46:19: error: 'n' was not declared in this scope cout<<m<<" "<<n; ^
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ă.