#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 | #21103863 | Utilizator | |
Fișier | anagrame_pfv.cpp | Dimensiune | 1.24 KB |
Data încărcării | 20 Februarie 2020, 08:42 | Scor / rezultat | 60 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]])&&m[v[st[k]]]==0) ^ anagrame_pfv.cpp:11:43: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr("aeiou",v[st[k]])&&m[v[st[k]]]==0) ^ anagrame_pfv.cpp:11:44: warning: array subscript has type 'char' [-Wchar-subscripts] if(strchr("aeiou",v[st[k]])&&m[v[st[k]]]==0) ^ anagrame_pfv.cpp:17:19: warning: array subscript has type 'char' [-Wchar-subscripts] if(v[st[i]]==v[st[k]]) ^ anagrame_pfv.cpp:17:29: warning: array subscript has type 'char' [-Wchar-subscripts] if(v[st[i]]==v[st[k]]) ^ anagrame_pfv.cpp: In function 'void afisare(int)': anagrame_pfv.cpp:36:22: warning: array subscript has type 'char' [-Wchar-subscripts] cout<<v[st[i]]; ^ anagrame_pfv.cpp: In function 'void Back(int)': anagrame_pfv.cpp:45:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if(valid(k)==1) ^ anagrame_pfv.cpp: In function 'int main()': anagrame_pfv.cpp:61: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 | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 60 |
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ă.