#3923
Se citesc două numere naturale n și m. Afișați în ordine lexicografică toate cuvintele care sunt formate din m litere distincte folosind primele n litere mari din alfabet.
| Problema | back_abc2 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64071850 | Utilizator | |
| Fișier | back_abc2.cpp | Dimensiune | 659 B |
| Data încărcării | 15 Aprilie 2026, 15:03 | Scor/rezultat | Eroare de compilare |
back_abc2.cpp: In function ‘int valid(int)’: back_abc2.cpp:6:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 6 | for(int i=0;i<k;i++) | ^~~ back_abc2.cpp:9:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 9 | return 1; | ^~~~~~ back_abc2.cpp:10:21: error: a function-definition is not allowed here before ‘{’ token 10 | void back(int k){ | ^ back_abc2.cpp:23:31: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 23 | int main (){ | ^~ back_abc2.cpp:23:31: note: remove parentheses to default-initialize a variable 23 | int main (){ | ^~ | -- back_abc2.cpp:23:31: note: or replace parentheses with braces to value-initialize a variable back_abc2.cpp:23:33: error: a function-definition is not allowed here before ‘{’ token 23 | int main (){ | ^ back_abc2.cpp:27:23: error: expected ‘}’ at end of input 27 | } | ^ back_abc2.cpp:5:17: note: to match this ‘{’ 5 | int valid(int k){ | ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema back_abc2 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ă.