#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 | #54684142 | Utilizator | |
Fișier | anagrame_pfv.cpp | Dimensiune | 652 B |
Data încărcării | 05 Decembrie 2024, 12:26 | Scor / rezultat | Eroare de compilare |
anagrame_pfv.cpp: In function 'void voc(char)': anagrame_pfv.cpp:5:54: error: return-statement with a value, in function returning 'void' [-fpermissive] return a=='a' || a=='e'|| a=='i' || a=='o' || a=='u'; ^ anagrame_pfv.cpp: In function 'int afisare()': anagrame_pfv.cpp:10:20: error: 'n' was not declared in this scope for(int i=1;i<=n;i++) ^ anagrame_pfv.cpp:11:16: error: 'cuv' was not declared in this scope if(voc(cuv[i-1]))cout<<cuv[i-1]; ^ anagrame_pfv.cpp:12:16: error: 's' was not declared in this scope else cout<<s[x[p++]]; ^ anagrame_pfv.cpp:12:18: error: 'x' was not declared in this scope else cout<<s[x[p++]]; ^ anagrame_pfv.cpp:12:20: error: 'p' was not declared in this scope else cout<<s[x[p++]]; ^ anagrame_pfv.cpp:9:9: warning: unused variable 'pp' [-Wunused-variable] int pp=1; ^ anagrame_pfv.cpp:14:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ anagrame_pfv.cpp: In function 'void bck(int)': anagrame_pfv.cpp:17:20: error: 'cnt' was not declared in this scope for(int i=1;i<=cnt;i++) ^ anagrame_pfv.cpp:18:13: error: 'p' was not declared in this scope if(!p[i]) ^ anagrame_pfv.cpp:20:9: error: 'x' was not declared in this scope x[k]=i; ^ anagrame_pfv.cpp: In function 'int main()': anagrame_pfv.cpp:27:10: error: 'cuv' was not declared in this scope cin>>cuv; ^ anagrame_pfv.cpp:28:5: error: 'n' was not declared in this scope n=strlen(cuv); ^ anagrame_pfv.cpp:30:25: error: 's' was not declared in this scope if(!voc(cuv[i]))s[++cnt]=cuv[i]; ^ anagrame_pfv.cpp:30:29: error: 'cnt' was not declared in this scope if(!voc(cuv[i]))s[++cnt]=cuv[i]; ^ anagrame_pfv.cpp:31:20: error: 'cnt' was not declared in this scope for(int i=1;i<=cnt;i++) ^ anagrame_pfv.cpp:33:12: error: 's' was not declared in this scope if(s[i]>s[j])swap(s[i],s[j]); ^
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ă.