#90
NumarMaximVocale
Să se scrie un program care citește mai multe propoziții și determină propoziția cu cele mai multe vocale
Problema | NumarMaximVocale | Operații I/O |
vocmax.in /vocmax.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #9758449 | Utilizator | |
Fișier | numarmaximvocale.cpp | Dimensiune | 461 B |
Data încărcării | 29 Mai 2018, 17:49 | Scor / rezultat | Eroare de compilare |
numarmaximvocale.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <fstream> ^ numarmaximvocale.cpp:2:9: error: #include expects "FILENAME" or <FILENAME> #include <cstring> ^ numarmaximvocale.cpp:3:1: error: stray '\302' in program using namespace std; ^ numarmaximvocale.cpp:3:1: error: stray '\240' in program numarmaximvocale.cpp:3:1: error: stray '\302' in program numarmaximvocale.cpp:3:1: error: stray '\240' in program numarmaximvocale.cpp:4:1: error: stray '\302' in program int n,i,j,l,nr,maxx; ^ numarmaximvocale.cpp:4:1: error: stray '\240' in program numarmaximvocale.cpp:5:1: error: stray '\302' in program char s[255],t[255]; ^ numarmaximvocale.cpp:5:1: error: stray '\240' in program numarmaximvocale.cpp:6:1: error: stray '\302' in program int main() ^ numarmaximvocale.cpp:6:1: error: stray '\240' in program numarmaximvocale.cpp:8:1: error: stray '\302' in program ifstream f("vocmax.in"); ^ numarmaximvocale.cpp:8:1: error: stray '\240' in program numarmaximvocale.cpp:9:1: error: stray '\302' in program ofstream g("vocmax.out"); ^ numarmaximvocale.cpp:9:1: error: stray '\240' in program numarmaximvocale.cpp:14:1: error: stray '\302' in program f.getline(s,255); ^ numarmaximvocale.cpp:14:1: error: stray '\240' in program numarmaximvocale.cpp:14:1: error: stray '\302' in program numarmaximvocale.cpp:14:1: error: stray '\240' in program numarmaximvocale.cpp:14:1: error: stray '\302' in program numarmaximvocale.cpp:14:1: error: stray '\240' in program numarmaximvocale.cpp:14:1: error: stray '\302' in program numarmaximvocale.cpp:14:1: error: stray '\240' in program numarmaximvocale.cpp:15:1: error: stray '\302' in program nr=0; ^ numarmaximvocale.cpp:15:1: error: stray '\240' in program numarmaximvocale.cpp:15:1: error: stray '\302' in program numarmaximvocale.cpp:15:1: error: stray '\240' in program numarmaximvocale.cpp:15:1: error: stray '\302' in program numarmaximvocale.cpp:15:1: error: stray '\240' in program numarmaximvocale.cpp:15:1: error: stray '\302' in program numarmaximvocale.cpp:15:1: error: stray '\240' in program numarmaximvocale.cpp:16:1: error: stray '\302' in program l=strlen(s); ^ numarmaximvocale.cpp:16:1: error: stray '\240' in program numarmaximvocale.cpp:16:1: error: stray '\302' in program numarmaximvocale.cpp:16:1: error: stray '\240' in program numarmaximvocale.cpp:16:1: error: stray '\302' in program numarmaximvocale.cpp:16:1: error: stray '\240' in program numarmaximvocale.cpp:16:1: error: stray '\302' in program numarmaximvocale.cpp:16:1: error: stray '\240' in program numarmaximvocale.cpp:17:1: error: stray '\302' in program for(i=0; i<l; ++i) ^ numarmaximvocale.cpp:17:1: error: stray '\240' in program numarmaximvocale.cpp:17:1: error: stray '\302' in program numarmaximvocale.cpp:17:1: error: stray '\240' in program numarmaximvocale.cpp:17:1: error: stray '\302' in program numarmaximvocale.cpp:17:1: error: stray '\240' in program numarmaximvocale.cpp:17:1: error: stray '\302' in program numarmaximvocale.cpp:17:1: error: stray '\240' in program numarmaximvocale.cpp:17:1: error: stray '\302' in program numarmaximvocale.cpp:17:1: error: stray '\240' in program numarmaximvocale.cpp:17:1: error: stray '\302' in program numarmaximvocale.cpp:17:1: error: stray '\240' in program numarmaximvocale.cpp:18:1: error: stray '\302' in program if(strchr("aeiou",s[i])) nr++; ^ numarmaximvocale.cpp:18:1: error: stray '\240' in program numarmaximvocale.cpp:18:1: error: stray '\302' in program numarmaximvocale.cpp:18:1: error: stray '\240' in program numarmaximvocale.cpp:19:1: error: stray '\302' in program if(nr>maxx) maxx=nr,strcpy(t,s); ^ numarmaximvocale.cpp:19:1: error: stray '\240' in program numarmaximvocale.cpp:19:1: error: stray '\302' in program numarmaximvocale.cpp:19:1: error: stray '\240' in program numarmaximvocale.cpp:19:1: error: stray '\302' in program numarmaximvocale.cpp:19:1: error: stray '\240' in program numarmaximvocale.cpp:19:1: error: stray '\302' in program numarmaximvocale.cpp:19:1: error: stray '\240' in program numarmaximvocale.cpp:19:1: error: stray '\302' in program numarmaximvocale.cpp:19:1: error: stray '\240' in program numarmaximvocale.cpp:19:1: error: stray '\302' in program numarmaximvocale.cpp:19:1: error: stray '\240' in program numarmaximvocale.cpp:19:1: error: stray '\302' in program numarmaximvocale.cpp:19:1: error: stray '\240' in program numarmaximvocale.cpp:19:1: error: stray '\302' in program numarmaximvocale.cpp:19:1: error: stray '\240' in program numarmaximvocale.cpp:19:1: error: stray '\302' in program numarmaximvocale.cpp:19:1: error: stray '\240' in program numarmaximvocale.cpp:24:1: error: stray '\302' in program return 0; ^ numarmaximvocale.cpp:24:1: error: stray '\240' in program numarmaximvocale.cpp: In function 'int main()': numarmaximvocale.cpp:8:1: error: 'ifstream' was not declared in this scope ifstream f("vocmax.in"); ^ numarmaximvocale.cpp:8:11: error: expected ';' before 'f' ifstream f("vocmax.in"); ^ numarmaximvocale.cpp:9:1: error: 'ofstream' was not declared in this scope ofstream g("vocmax.out"); ^ numarmaximvocale.cpp:9:11: error: expected ';' before 'g' ofstream g("vocmax.out"); ^ numarmaximvocale.cpp:10:1: error: 'f' was not declared in this scope f>>n; ^ numarmaximvocale.cpp:16:19: error: 'strlen' was not declared in this scope l=strlen(s); ^ numarmaximvocale.cpp:18:25: error: 'strchr' was not declared in this scope if(strchr("aeiou",s[i])) nr++; ^ numarmaximvocale.cpp:19:48: error: 'strcpy' was not declared in this scope if(nr>maxx) maxx=nr,strcpy(t,s); ^ numarmaximvocale.cpp:21:1: error: 'g' was not declared in this scope g<<t; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema NumarMaximVocale 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ă.