#3910
Aranjamente1
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 | #48614825 | Utilizator | |
Fișier | aranjamente1.cpp | Dimensiune | 680 B |
Data încărcării | 31 Ianuarie 2024, 09:20 | Scor / rezultat | Eroare de compilare |
aranjamente1.cpp:29:5: error: stray '\342' in program for(i=1; i<=k; i++) cout<<st[i]<<” “; ^ aranjamente1.cpp:29:5: error: stray '\200' in program aranjamente1.cpp:29:5: error: stray '\235' in program aranjamente1.cpp:29:5: error: stray '\342' in program aranjamente1.cpp:29:5: error: stray '\200' in program aranjamente1.cpp:29:5: error: stray '\234' in program aranjamente1.cpp: In function 'void tipar(int)': aranjamente1.cpp:29:45: error: expected primary-expression before ';' token for(i=1; i<=k; i++) cout<<st[i]<<” “; ^ aranjamente1.cpp: In function 'void back(int)': aranjamente1.cpp:40:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(valid(k)) if(solutie(k)) tipar(k); ^
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ă.