#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 | #51539421 | Utilizator | |
Fișier | numarmaximvocale.cpp | Dimensiune | 1.04 KB |
Data încărcării | 07 Iulie 2024, 19:38 | Scor / rezultat | Eroare de compilare |
numarmaximvocale.cpp: In function 'bool Vocale(char)': numarmaximvocale.cpp:7:78: warning: comparison with string literal results in unspecified behaviour [-Waddress] return ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch =='u'||ch=="A" ||ch=="E" ||ch=="I" ||ch=="O" ||ch=="U"; ^ numarmaximvocale.cpp:7:78: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] numarmaximvocale.cpp:7:88: warning: comparison with string literal results in unspecified behaviour [-Waddress] return ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch =='u'||ch=="A" ||ch=="E" ||ch=="I" ||ch=="O" ||ch=="U"; ^ numarmaximvocale.cpp:7:88: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] numarmaximvocale.cpp:7:98: warning: comparison with string literal results in unspecified behaviour [-Waddress] return ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch =='u'||ch=="A" ||ch=="E" ||ch=="I" ||ch=="O" ||ch=="U"; ^ numarmaximvocale.cpp:7:98: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] numarmaximvocale.cpp:7:108: warning: comparison with string literal results in unspecified behaviour [-Waddress] return ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch =='u'||ch=="A" ||ch=="E" ||ch=="I" ||ch=="O" ||ch=="U"; ^ numarmaximvocale.cpp:7:108: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] numarmaximvocale.cpp:7:118: warning: comparison with string literal results in unspecified behaviour [-Waddress] return ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch =='u'||ch=="A" ||ch=="E" ||ch=="I" ||ch=="O" ||ch=="U"; ^ numarmaximvocale.cpp:7:118: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
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ă.