#3155
anagrame4
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 consoanele sunt puncte fixe.
Problema | anagrame4 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #48305229 | Utilizator | |
Fișier | anagrame4.cpp | Dimensiune | 1.75 KB |
Data încărcării | 21 Ianuarie 2024, 18:11 | Scor / rezultat | Eroare de compilare |
anagrame4.cpp: In function 'void tipar(int)': anagrame4.cpp:9:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<strlen(n); i++) ^ anagrame4.cpp: At global scope: anagrame4.cpp:25:5: error: redefinition of 'int k' int k, p; ^ anagrame4.cpp:5:5: error: 'int k' previously declared here int k, p; ^ anagrame4.cpp:25:8: error: redefinition of 'int p' int k, p; ^ anagrame4.cpp:5:8: error: 'int p' previously declared here int k, p; ^ anagrame4.cpp:26:10: error: redefinition of 'char n [11]' char n[11], st[11], voc[12]; ^ anagrame4.cpp:6:6: error: 'char n [11]' previously declared here char n[11], st[11], voc[12]; ^ anagrame4.cpp:26:18: error: redefinition of 'char st [11]' char n[11], st[11], voc[12]; ^ anagrame4.cpp:6:13: error: 'char st [11]' previously declared here char n[11], st[11], voc[12]; ^ anagrame4.cpp:26:27: error: redefinition of 'char voc [12]' char n[11], st[11], voc[12]; ^ anagrame4.cpp:6:21: error: 'char voc [12]' previously declared here char n[11], st[11], voc[12]; ^ anagrame4.cpp: In function 'void tipar(int)': anagrame4.cpp:27:6: error: redefinition of 'void tipar(int)' void tipar(int k) ^ anagrame4.cpp:7:6: error: 'void tipar(int)' previously defined here void tipar(int k) ^ anagrame4.cpp:29:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<strlen(n); i++) ^ anagrame4.cpp: In function 'int cont(int)': anagrame4.cpp:33:5: error: redefinition of 'int cont(int)' int cont(int k) ^ anagrame4.cpp:14:5: error: 'int cont(int)' previously defined here int cont(int k) ^ anagrame4.cpp:35:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<strlen(n); i++) ^ anagrame4.cpp: In function 'void back(int)': anagrame4.cpp:41:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (k == strlen(n)) { ^ anagrame4.cpp: In function 'int main()': anagrame4.cpp:58:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<strlen(n)-1; i++) ^ anagrame4.cpp:59:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=i+1; j<strlen(n); j++) ^ anagrame4.cpp:64:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<strlen(n); i++) ^ anagrame4.cpp: In function 'int main()': anagrame4.cpp:73:5: error: redefinition of 'int main()' int main() ^ anagrame4.cpp:55:5: error: 'int main()' previously defined here int main() ^ anagrame4.cpp:76:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<strlen(n)-1; i++) ^ anagrame4.cpp:77:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=i+1; j<strlen(n); j++) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema anagrame4 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ă.