Să se scrie un program care citește un cuvânt și îl afișează după interschimbarea primei vocale cu ultima consoană.
Problema | InterschimbareLitere | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53032857 | Utilizator | |
Fișier | interschimbarelitere.cpp | Dimensiune | 892 B |
Data încărcării | 16 Octombrie 2024, 07:52 | Scor / rezultat | 100 puncte |
interschimbarelitere.cpp: In function 'int main()': interschimbarelitere.cpp:16:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<strlen(s);i++) ^ interschimbarelitere.cpp:19:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(ct==0||ct==strlen(s)) ^ interschimbarelitere.cpp:23:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=1;i<strlen(s);i++) ^ interschimbarelitere.cpp:29:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<strlen(s);i++) ^ interschimbarelitere.cpp:10:18: warning: unused variable 'p' [-Wunused-variable] char s[256],*p,litere[]="aeiouAEIOU",cons[]="bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ",v,c; ^ interschimbarelitere.cpp:10:42: warning: unused variable 'cons' [-Wunused-variable] char s[256],*p,litere[]="aeiouAEIOU",cons[]="bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ",v,c; ^ interschimbarelitere.cpp:11:9: warning: unused variable 'nr' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic; ^ interschimbarelitere.cpp:11:14: warning: unused variable 'n' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic; ^ interschimbarelitere.cpp:11:16: warning: unused variable 'nr1' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic; ^ interschimbarelitere.cpp:11:22: warning: unused variable 'f' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic; ^ interschimbarelitere.cpp:11:32: warning: unused variable 'max' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic; ^ interschimbarelitere.cpp:11:38: warning: unused variable 'val' [-Wunused-variable] int nr=0,n,nr1=0,f[10]={0},max=0,val=0,i,ct=0,iv,ic; ^ interschimbarelitere.cpp:12:10: warning: unused variable 'ok' [-Wunused-variable] bool ok=false,ok1=false; ^ interschimbarelitere.cpp:12:19: warning: unused variable 'ok1' [-Wunused-variable] bool ok=false,ok1=false; ^ interschimbarelitere.cpp:36:12: warning: 'iv' may be used uninitialized in this function [-Wmaybe-uninitialized] s[iv]=c; ^ interschimbarelitere.cpp:37:12: warning: 'v' may be used uninitialized in this function [-Wmaybe-uninitialized] s[ic]=v; ^ interschimbarelitere.cpp:37:12: warning: 'ic' may be used uninitialized in this function [-Wmaybe-uninitialized] interschimbarelitere.cpp:36:12: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized] s[iv]=c; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | OK. | 30 | 30 | ||
3 | 0 secunde | OK. | 30 | 30 | ||
4 | 0 secunde | OK. | 30 | 30 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema InterschimbareLitere 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ă.