#85
InserareAsterisc
Să se scrie un program care citește un text și inserează după fiecare vocală caracterul *
.
Problema | InserareAsterisc | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #14669293 | Utilizator | |
Fișier | inserareasterisc.cpp | Dimensiune | 476 B |
Data încărcării | 12 Martie 2019, 21:47 | Scor / rezultat | Eroare de compilare |
inserareasterisc.cpp:5:1: error: stray '\302' in program char v[101]; ^ inserareasterisc.cpp:5:1: error: stray '\240' in program inserareasterisc.cpp:5:1: error: stray '\302' in program inserareasterisc.cpp:5:1: error: stray '\240' in program inserareasterisc.cpp:6:1: error: stray '\302' in program int i; ^ inserareasterisc.cpp:6:1: error: stray '\240' in program inserareasterisc.cpp:6:1: error: stray '\302' in program inserareasterisc.cpp:6:1: error: stray '\240' in program inserareasterisc.cpp:7:1: error: stray '\302' in program cin.getline(v,101); ^ inserareasterisc.cpp:7:1: error: stray '\240' in program inserareasterisc.cpp:7:1: error: stray '\302' in program inserareasterisc.cpp:7:1: error: stray '\240' in program inserareasterisc.cpp:8:1: error: stray '\302' in program int n=strlen(v); ^ inserareasterisc.cpp:8:1: error: stray '\240' in program inserareasterisc.cpp:8:1: error: stray '\302' in program inserareasterisc.cpp:8:1: error: stray '\240' in program inserareasterisc.cpp:9:1: error: stray '\302' in program if(strchr(v,'a') || strchr(v,'e') || strchr(v,'i') || strchr(v,'o') || strchr(v,'u')) { ^ inserareasterisc.cpp:9:1: error: stray '\240' in program inserareasterisc.cpp:9:1: error: stray '\302' in program inserareasterisc.cpp:9:1: error: stray '\240' in program inserareasterisc.cpp:10:1: error: stray '\302' in program for(i=0; i<n; i++) { ^ inserareasterisc.cpp:10:1: error: stray '\240' in program inserareasterisc.cpp:10:1: error: stray '\302' in program inserareasterisc.cpp:10:1: error: stray '\240' in program inserareasterisc.cpp:10:1: error: stray '\302' in program inserareasterisc.cpp:10:1: error: stray '\240' in program inserareasterisc.cpp:10:1: error: stray '\302' in program inserareasterisc.cpp:10:1: error: stray '\240' in program inserareasterisc.cpp:10:1: error: stray '\302' in program inserareasterisc.cpp:10:1: error: stray '\240' in program inserareasterisc.cpp:11:1: error: stray '\302' in program cout<<v[i]; ^ inserareasterisc.cpp:11:1: error: stray '\240' in program inserareasterisc.cpp:11:1: error: stray '\302' in program inserareasterisc.cpp:11:1: error: stray '\240' in program inserareasterisc.cpp:11:1: error: stray '\302' in program inserareasterisc.cpp:11:1: error: stray '\240' in program inserareasterisc.cpp:11:1: error: stray '\302' in program inserareasterisc.cpp:11:1: error: stray '\240' in program inserareasterisc.cpp:11:1: error: stray '\302' in program inserareasterisc.cpp:11:1: error: stray '\240' in program inserareasterisc.cpp:11:1: error: stray '\302' in program inserareasterisc.cpp:11:1: error: stray '\240' in program inserareasterisc.cpp:11:1: error: stray '\302' in program inserareasterisc.cpp:11:1: error: stray '\240' in program inserareasterisc.cpp:11:1: error: stray '\302' in program inserareasterisc.cpp:11:1: error: stray '\240' in program inserareasterisc.cpp:11:1: error: stray '\302' in program inserareasterisc.cpp:11:1: error: stray '\240' in program inserareasterisc.cpp:12:1: error: stray '\302' in program if(strchr("aeiou",v[i])!=0) cout<<"*"; ^ inserareasterisc.cpp:12:1: error: stray '\240' in program inserareasterisc.cpp:12:1: error: stray '\302' in program inserareasterisc.cpp:12:1: error: stray '\240' in program inserareasterisc.cpp:12:1: error: stray '\302' in program inserareasterisc.cpp:12:1: error: stray '\240' in program inserareasterisc.cpp:12:1: error: stray '\302' in program inserareasterisc.cpp:12:1: error: stray '\240' in program inserareasterisc.cpp:12:1: error: stray '\302' in program inserareasterisc.cpp:12:1: error: stray '\240' in program inserareasterisc.cpp:12:1: error: stray '\302' in program inserareasterisc.cpp:12:1: error: stray '\240' in program inserareasterisc.cpp:12:1: error: stray '\302' in program inserareasterisc.cpp:12:1: error: stray '\240' in program inserareasterisc.cpp:12:1: error: stray '\302' in program inserareasterisc.cpp:12:1: error: stray '\240' in program inserareasterisc.cpp:12:1: error: stray '\302' in program inserareasterisc.cpp:12:1: error: stray '\240' in program inserareasterisc.cpp:13:1: error: stray '\302' in program } ^ inserareasterisc.cpp:13:1: error: stray '\240' in program inserareasterisc.cpp:13:1: error: stray '\302' in program inserareasterisc.cpp:13:1: error: stray '\240' in program inserareasterisc.cpp:13:1: error: stray '\302' in program inserareasterisc.cpp:13:1: error: stray '\240' in program inserareasterisc.cpp:13:1: error: stray '\302' in program inserareasterisc.cpp:13:1: error: stray '\240' in program inserareasterisc.cpp:13:1: error: stray '\302' in program inserareasterisc.cpp:13:1: error: stray '\240' in program inserareasterisc.cpp:14:1: error: stray '\302' in program } ^ inserareasterisc.cpp:14:1: error: stray '\240' in program inserareasterisc.cpp:14:1: error: stray '\302' in program inserareasterisc.cpp:14:1: error: stray '\240' in program inserareasterisc.cpp:15:1: error: stray '\302' in program else cout<<"FARA VOCALE"; ^ inserareasterisc.cpp:15:1: error: stray '\240' in program inserareasterisc.cpp:15:1: error: stray '\302' in program inserareasterisc.cpp:15:1: error: stray '\240' in program inserareasterisc.cpp:16:1: error: stray '\302' in program return 0; ^ inserareasterisc.cpp:16:1: error: stray '\240' in program inserareasterisc.cpp:16:1: error: stray '\302' in program inserareasterisc.cpp:16:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema InserareAsterisc 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ă.