#275
PerechiVocale1
Se dă un text în care cuvintele sunt formate din litere mici ale alfabetului englez şi cifre şi sunt separate prin spaţii şi semne de punctuaţie. Să se determine perechea de vocale alăturate din text care apare de cele mai multe ori.
Variante Bacalaureat 2009
Problema | PerechiVocale1 | Operații I/O |
perechivocale1.in /perechivocale1.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54384741 | Utilizator | |
Fișier | perechivocale1.cpp | Dimensiune | 739 B |
Data încărcării | 27 Noiembrie 2024, 10:35 | Scor / rezultat | Eroare de compilare |
perechivocale1.cpp:8:20: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:25: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:30: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:35: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:40: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:45: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:50: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:55: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:60: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:65: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:70: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:75: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:80: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:85: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:90: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:95: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:100: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:105: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:110: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:115: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:120: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:125: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:130: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:135: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:140: warning: multi-character character constant [-Wmultichar] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:144: warning: narrowing conversion of '24929' from 'int' to 'char' inside { } [-Wnarrowing] char t[2],voc[30]={'aa','ae','ai','ao','au','ea','ee','ei','eo','eu','ia','ie','ii','io','iu','oa','oe','oi','oo','ou','ua','ue','ui','uo','uu'}; ^ perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '24933' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '24937' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '24943' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '24949' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '25953' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '25957' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '25961' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '25967' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '25973' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '26977' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '26981' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '26985' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '26991' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '26997' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '28513' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '28517' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '28521' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '28527' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '28533' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '30049' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '30053' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '30057' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '30063' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp:8:144: warning: narrowing conversion of '30069' from 'int' to 'char' inside { } [-Wnarrowing] perechivocale1.cpp:8:144: warning: overflow in implicit constant conversion [-Woverflow] perechivocale1.cpp: In function 'int main()': perechivocale1.cpp:16:24: error: 'strxcat' was not declared in this scope strxcat(t,y) ^ perechivocale1.cpp:17:13: error: expected ';' before 'strcat' strcat(t,x); ^ perechivocale1.cpp:19:29: error: invalid types 'int [26][char*]' for array subscript vf[strstr(voc,t)]++; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PerechiVocale1 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ă.