#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 | #53944610 | Utilizator | |
Fișier | perechivocale1.cpp | Dimensiune | 510 B |
Data încărcării | 15 Noiembrie 2024, 13:06 | Scor / rezultat | Eroare de compilare |
perechivocale1.cpp: In function 'int main()': perechivocale1.cpp:8:20: error: 'voc' was not declared in this scope p = strchr(voc, sir[i]) ^ perechivocale1.cpp:8:25: error: 'sir' was not declared in this scope p = strchr(voc, sir[i]) ^ perechivocale1.cpp:8:29: error: 'i' was not declared in this scope p = strchr(voc, sir[i]) ^ perechivocale1.cpp:9:9: error: expected ';' before 'int' int l = p - voc; ^ perechivocale1.cpp:10:17: error: expected primary-expression before 'char' int c = char *q; ^ perechivocale1.cpp:11:9: error: 'q' was not declared in this scope q = strchr(nr, sir[i]); ^ perechivocale1.cpp:11:20: error: 'nr' was not declared in this scope q = strchr(nr, sir[i]); ^ perechivocale1.cpp:12:13: error: redeclaration of 'int c' int c = q - voc; ^ perechivocale1.cpp:10:13: error: 'int c' previously declared here int c = char *q; ^ perechivocale1.cpp:13:9: error: 'A' was not declared in this scope A[l][c]++; ^ perechivocale1.cpp:13:11: error: 'l' was not declared in this scope A[l][c]++; ^ perechivocale1.cpp:15:9: error: 'i' was not declared in this scope for(i = 0; i < 5; ++i) ^ perechivocale1.cpp:16:13: error: 'j' was not declared in this scope for(j = 0; j < 5; ++j) ^ perechivocale1.cpp:17:12: error: 'a' was not declared in this scope if(a[i][j] > max) ^ perechivocale1.cpp:17:22: error: 'max' was not declared in this scope if(a[i][j] > max) ^ perechivocale1.cpp:18:15: error: 'A' was not declared in this scope max = A[i][j]; ^ perechivocale1.cpp:19:9: error: 'i' was not declared in this scope for(i = 0; i < 5; ++i) ^ perechivocale1.cpp:20:13: error: 'j' was not declared in this scope for(j = 0; j < 5; ++j) ^ perechivocale1.cpp:21:12: error: 'A' was not declared in this scope if(A[i][j] == max) ^ perechivocale1.cpp:21:23: error: 'max' was not declared in this scope if(A[i][j] == max) ^ perechivocale1.cpp:22:9: error: 'cout' was not declared in this scope cout voc[i] << voc[j] << endl; ^ perechivocale1.cpp:22:14: error: expected ';' before 'voc' cout voc[i] << voc[j] << endl; ^
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ă.