#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 | #34621169 | Utilizator | |
Fișier | cuvinte1.c | Dimensiune | 278 B |
Data încărcării | 08 Februarie 2022, 09:47 | Scor / rezultat | Eroare de compilare |
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:13: error: expected expression before 'else' else if(s[i]!=' ') ^ cuvinte1.c:11:5: warning: passing argument 1 of 'puts' from incompatible pointer type [enabled by default] puts(s); ^ In file included from cuvinte1.c:1:0: /usr/include/stdio.h:695:12: note: expected 'const char *' but argument is of type 'int *' extern int puts (const char *__s); ^ cuvinte1.c:5:9: warning: ignoring return value of 'gets', declared with attribute warn_unused_result [-Wunused-result] gets(s); ^
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ă.