#973
Cuvinte1
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 | #34621669 | Utilizator | |
Fișier | cuvinte1.c | Dimensiune | 353 B |
Data încărcării | 08 Februarie 2022, 09:56 | Scor / rezultat | 0 puncte |
cuvinte1.c: In function 'main': cuvinte1.c:5:5: warning: 'gets' is deprecated (declared at /usr/include/i386-linux-gnu/bits/stdio2.h:233) [-Wdeprecated-declarations] gets(s); ^ cuvinte1.c:5:5: warning: passing argument 1 of 'gets' from incompatible pointer type [enabled by default] In file included from /usr/include/stdio.h:937:0, from cuvinte1.c:1: /usr/include/i386-linux-gnu/bits/stdio2.h:233:1: note: expected 'char *' but argument is of type 'int *' gets (char *__str) ^ cuvinte1.c:6:5: warning: passing argument 1 of 'strlen' from incompatible pointer type [enabled by default] n=strlen(s); ^ In file included from cuvinte1.c:2:0: /usr/include/string.h:399:15: note: expected 'const char *' but argument is of type 'int *' extern size_t strlen (const char *__s) ^ cuvinte1.c:9:27: warning: left-hand operand of comma expression has no effect [-Wunused-value] return("%c %c", s[i], s[i+1]); ^ cuvinte1.c:9:33: warning: left-hand operand of comma expression has no effect [-Wunused-value] return("%c %c", s[i], s[i+1]); ^ cuvinte1.c:5:9: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccbEuFER.o: In function \`main': cuvinte1.c:(.text.startup+0x21): warning: the \`gets' function is dangerous and should not be used.
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 40 | 0 | ||
4 | 0 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ă.