#3154
anagrame_pfv
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 | #21226015 | Utilizator | |
Fișier | anagrame_pfv.cpp | Dimensiune | 1.14 KB |
Data încărcării | 24 Februarie 2020, 11:20 | Scor / rezultat | 80 puncte |
anagrame_pfv.cpp: In function 'int valid(int)': anagrame_pfv.cpp:9:17: warning: NULL used in arithmetic [-Wpointer-arith] if(nr[k-1]!=NULL&&nr[k-1]!=v[st[k]]) ^ anagrame_pfv.cpp:9:39: warning: array subscript has type 'char' [-Wchar-subscripts] if(nr[k-1]!=NULL&&nr[k-1]!=v[st[k]]) ^ anagrame_pfv.cpp:11:30: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr("aeiou",v[st[k]])==0&&m[v[st[k]]]!=0) ^ anagrame_pfv.cpp:11:46: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr("aeiou",v[st[k]])==0&&m[v[st[k]]]!=0) ^ anagrame_pfv.cpp:11:47: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr("aeiou",v[st[k]])==0&&m[v[st[k]]]!=0) ^ anagrame_pfv.cpp:16:15: warning: array subscript has type 'char' [-Wchar-subscripts] if(m[st[k]]>1) ^ anagrame_pfv.cpp:8:11: warning: unused variable 'o' [-Wunused-variable] int i,o=0; ^ anagrame_pfv.cpp: In function 'void afisare(int)': anagrame_pfv.cpp:31:22: warning: array subscript has type 'char' [-Wchar-subscripts] cout<<v[st[i]]; ^ anagrame_pfv.cpp: In function 'void Back(int)': anagrame_pfv.cpp:40:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(valid(k)==1) ^ anagrame_pfv.cpp: In function 'int main()': anagrame_pfv.cpp:56:19: warning: array subscript has type 'char' [-Wchar-subscripts] m[v[i]]++; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0 secunde | OK. | 20 | 20 | ||
4 | 0 secunde | OK. | 20 | 20 | ||
5 | 0.004 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 80 |
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ă.