#2750
Se citesc două numere naturale. Să se afișeze cel mai mic și cel mai mare număr format din exact două cifre, scris cu o cifră din primul număr și cu o cifră din cel de-al doilea.
Problema | GenNr | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58297115 | Utilizator | |
Fișier | gennr.cpp | Dimensiune | 587 B |
Data încărcării | 25 Mai 2025, 20:44 | Scor / rezultat | Eroare de compilare |
gennr.cpp: In function 'int main()': gennr.cpp:13:14: error: invalid operands of types 'double' and 'int' to binary 'operator%' if(a%10<mic1) ^ gennr.cpp:14:20: error: invalid operands of types 'double' and 'int' to binary 'operator%' mic1=a%10; ^ gennr.cpp:15:14: error: invalid operands of types 'double' and 'int' to binary 'operator%' if(a%10>mare1) ^ gennr.cpp:16:21: error: invalid operands of types 'double' and 'int' to binary 'operator%' mare1=a%10; ^ gennr.cpp:21:14: error: invalid operands of types 'double' and 'int' to binary 'operator%' if(b%10<mic2) ^ gennr.cpp:22:20: error: invalid operands of types 'double' and 'int' to binary 'operator%' mic2=b%10; ^ gennr.cpp:23:14: error: invalid operands of types 'double' and 'int' to binary 'operator%' if(b%10>mare2) ^ gennr.cpp:24:21: error: invalid operands of types 'double' and 'int' to binary 'operator%' mare2=b%10; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema GenNr 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ă.