#2205
Se consideră un cuvânt C format din litere mici, nu neapărat distincte. Să se afișeze în ordine lexicografică toate cuvintele distincte formate cu exact aceleași caractere ca și C.
| Problema | permrep | Operații I/O |
permrep.in/permrep.out
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64768282 | Utilizator | |
| Fișier | permrep.cpp | Dimensiune | 1011 B |
| Data încărcării | 28 Mai 2026, 20:21 | Scor/rezultat | 0 puncte |
permrep.cpp: In function ‘void afis()’: permrep.cpp:19:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 19 | for (int i = 1; i < sir.size(); ++i) { | ~~^~~~~~~~~~~~ permrep.cpp: In function ‘void back(int)’: permrep.cpp:29:11: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 29 | if (k > sir.size() - 1) { | ~~^~~~~~~~~~~~~~~~ permrep.cpp:34:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 34 | for (int i = 1; i < sir.size(); ++i) { | ~~^~~~~~~~~~~~ permrep.cpp: In function ‘int main()’: permrep.cpp:52:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 52 | for (int i = 1; i < sir.size() - 1; ++i) { | ~~^~~~~~~~~~~~~~~~ permrep.cpp:53:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 53 | for (int j = i + 1; j < sir.size(); ++j) { | ~~^~~~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 1 | 0.017 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0.017 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0.017 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.017 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.017 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.003 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.026 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.017 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.017 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema permrep 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ă.