#3154
Se citește de la tastatură un cuvânt s format din cel mult 11 litere mici distincte. Să se genereze în ordine alfabetică și să se afișeze toate anagramele cuvântului s în care vocalele sunt puncte fixe.
| Problema | anagrame_pfv | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #58935715 | Utilizator | |
| Fișier | anagrame_pfv.cpp | Dimensiune | 1.13 KB |
| Data încărcării | 06 Septembrie 2025, 18:10 | Scor/rezultat | Eroare de compilare |
anagrame_pfv.cpp:1:1: error: 'include' does not name a type include <bits/stdc++.h> ^ anagrame_pfv.cpp:12:1: error: 'vector' does not name a type vector < string > L; ^ anagrame_pfv.cpp: In function 'void Back(int)': anagrame_pfv.cpp:18:9: error: 'string' was not declared in this scope string p = ""; ^ anagrame_pfv.cpp:18:16: error: expected ';' before 'p' string p = ""; ^ anagrame_pfv.cpp:20:13: error: 'p' was not declared in this scope p += a[st[i]]; ^ anagrame_pfv.cpp:21:9: error: 'L' was not declared in this scope L.push_back(p); ^ anagrame_pfv.cpp:21:21: error: 'p' was not declared in this scope L.push_back(p); ^ anagrame_pfv.cpp: In function 'int main()': anagrame_pfv.cpp:46:5: error: 'cin' was not declared in this scope cin >> (a + 1); ^ anagrame_pfv.cpp:47:21: error: 'strlen' was not declared in this scope n = strlen(a + 1); ^ anagrame_pfv.cpp:59:10: error: 'L' was not declared in this scope sort(L.begin(), L.end()); ^ anagrame_pfv.cpp:59:28: error: 'sort' was not declared in this scope sort(L.begin(), L.end()); ^ anagrame_pfv.cpp:60:19: error: unable to deduce 'auto&&' from 'L' for(auto it : L) ^ anagrame_pfv.cpp:61:9: error: 'cout' was not declared in this scope cout << it << "\n"; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema anagrame_pfv 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ă.