#525
Se dau n
numere naturale. Determinaţi cele mai mari două numere cu trei cifre care nu apar printre numerele date.
Problema | Numere1 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #56392490 | Utilizator | |
Fișier | numere1.cpp | Dimensiune | 527 B |
Data încărcării | 17 Februarie 2025, 13:58 | Scor / rezultat | Eroare de compilare |
numere1.cpp: In function 'int main()': numere1.cpp:18:17: warning: right operand of comma operator has no effect [-Wunused-value] for(j=999, j>=99,j--) ^ numere1.cpp:18:25: error: expected ';' before ')' token for(j=999, j>=99,j--) ^ numere1.cpp:33:1: error: expected primary-expression at end of input } ^ numere1.cpp:33:1: error: expected ';' at end of input numere1.cpp:33:1: error: expected primary-expression at end of input numere1.cpp:33:1: error: expected ')' at end of input numere1.cpp:33:1: error: expected statement at end of input numere1.cpp:7:22: warning: unused variable 'a' [-Wunused-variable] int n, t[1000],i,a=0,b=0,j; ^ numere1.cpp:7:26: warning: unused variable 'b' [-Wunused-variable] int n, t[1000],i,a=0,b=0,j; ^ numere1.cpp:33:1: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numere1 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ă.