#973
Se dă o propoziție care conține numai litere mici ale alfabetului englez și spații. Să se afișeze cuvintele din propoziție care conțin numai vocale.
| Problema | Cuvinte1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64827471 | Utilizator | |
| Fișier | cuvinte1.cpp | Dimensiune | 417 B |
| Data încărcării | 04 Iunie 2026, 09:09 | Scor/rezultat | 0 puncte |
cuvinte1.cpp: In function ‘int main()’: cuvinte1.cpp:11:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare] 11 | for(int i = 0 ; i <strlen(p);i++) | ~~^~~~~~~~~~ cuvinte1.cpp:11:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 11 | for(int i = 0 ; i <strlen(p);i++) | ^~~ cuvinte1.cpp:13:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 13 | ok = 0; | ^~ cuvinte1.cpp:14:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 14 | if(ok) | ^~ cuvinte1.cpp:16:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 16 | p = strtok(NULL," "); | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 40 | 0 | ||
| 4 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cuvinte1 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ă.