#3915
anagrame_cv
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 nu există două vocale alăturate și nici două consoane alăturate.
Problema | anagrame_cv | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #48493774 | Utilizator | |
Fișier | anagrame_cv.cpp | Dimensiune | 969 B |
Data încărcării | 27 Ianuarie 2024, 13:18 | Scor / rezultat | Eroare de compilare |
anagrame_cv.cpp: In function 'void tipar()': anagrame_cv.cpp:7:22: warning: array subscript has type 'char' [-Wchar-subscripts] cout<<s[st[i]]; ^ anagrame_cv.cpp: In function 'int cond(int)': anagrame_cv.cpp:17:26: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr(voc,s[st[k]])&&strchr(voc,s[st[k-1]])) ^ anagrame_cv.cpp:17:27: error: 'strchr' was not declared in this scope if(strchr(voc,s[st[k]])&&strchr(voc,s[st[k-1]])) ^ anagrame_cv.cpp:17:50: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr(voc,s[st[k]])&&strchr(voc,s[st[k-1]])) ^ anagrame_cv.cpp:19:26: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr(voc,s[st[k]])==0&&strchr(voc,s[st[k-1]])==0) ^ anagrame_cv.cpp:19:27: error: 'strchr' was not declared in this scope if(strchr(voc,s[st[k]])==0&&strchr(voc,s[st[k-1]])==0) ^ anagrame_cv.cpp:19:53: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr(voc,s[st[k]])==0&&strchr(voc,s[st[k-1]])==0) ^ anagrame_cv.cpp: In function 'int main()': anagrame_cv.cpp:41:16: error: 'strlen' was not declared in this scope lg=strlen(s); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema anagrame_cv 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ă.