#13
Prefixe
Să se scrie un program care să afişeze prefixele şi sufixele unui cuvânt citit.
Problema | Prefixe | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #47757714 | Utilizator | |
Fișier | prefixe.c | Dimensiune | 465 B |
Data încărcării | 01 Ianuarie 2024, 18:46 | Scor / rezultat | 0 puncte |
prefixe.c: In function 'main': prefixe.c:9:5: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] int L = strlen(s); ^ prefixe.c:9:13: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default] int L = strlen(s); ^ prefixe.c:8:10: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(s,256,stdin); ^ In file included from /usr/include/stdio.h:937:0, from prefixe.c:1: In function 'fgets', inlined from 'main' at prefixe.c:8:10: /usr/include/i386-linux-gnu/bits/stdio2.h:261:2: warning: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 30 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 30 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 30 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Prefixe 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ă.