#3910
Se citesc trei numere naturale a b n. Să se afișeze, în ordine lexicografică, șirurile cu n elemente distincte din mulțimea {a, a + 1, ..., b}.
| Problema | Aranjamente1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #62967838 | Utilizator | |
| Fișier | aranjamente1.cpp | Dimensiune | 263 B |
| Data încărcării | 09 Februarie 2026, 10:09 | Scor/rezultat | Eroare de compilare |
aranjamente1.cpp: In function 'void afisare(int)': aranjamente1.cpp:11:18: error: expected ';' at end of input for (int i = 1 ^ aranjamente1.cpp:11:18: error: expected primary-expression at end of input aranjamente1.cpp:11:18: error: expected ';' at end of input aranjamente1.cpp:11:18: error: expected primary-expression at end of input aranjamente1.cpp:11:18: error: expected ')' at end of input aranjamente1.cpp:11:18: error: expected statement at end of input aranjamente1.cpp:11:14: warning: unused variable 'i' [-Wunused-variable] for (int i = 1 ^ aranjamente1.cpp:11:18: error: expected '}' at end of input for (int i = 1 ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Aranjamente1 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ă.