#1866
prosir
Să se înlocuiasca cu cifra 5 ultima literă a fiecărui cuvânt din textul conținut de fișierul prosir.in
.
--
Problema | prosir | Operații I/O |
prosir.in /prosir.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #20671413 | Utilizator | |
Fișier | prosir.c | Dimensiune | 417 B |
Data încărcării | 06 Februarie 2020, 17:11 | Scor / rezultat | 0 puncte |
prosir.c: In function 'main': prosir.c:16:9: warning: passing argument 1 of '__builtin_strlen' makes pointer from integer without a cast [enabled by default] if(strcmp(s[i+1], sep) == 0) ^ prosir.c:16:9: note: expected 'const char *' but argument is of type 'char' prosir.c:16:9: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast [enabled by default] prosir.c:16:9: note: expected 'const char *' but argument is of type 'char' prosir.c:16:9: warning: passing argument 1 of '__builtin_strlen' makes pointer from integer without a cast [enabled by default] prosir.c:16:9: note: expected 'const char *' but argument is of type 'char' prosir.c:16:9: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast [enabled by default] prosir.c:16:9: note: expected 'const char *' but argument is of type 'char' prosir.c:16:9: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast [enabled by default] prosir.c:16:9: note: expected 'const char *' but argument is of type 'char' prosir.c:16:9: warning: passing argument 1 of '__builtin_strcmp' makes pointer from integer without a cast [enabled by default] prosir.c:16:9: note: expected 'const char *' but argument is of type 'char' prosir.c:17:13: warning: passing argument 1 of 'strcpy' makes pointer from integer without a cast [enabled by default] strcpy(s[i], sir); ^ In file included from /usr/include/features.h:374:0, from /usr/include/stdio.h:27, from prosir.c:1: /usr/include/i386-linux-gnu/bits/string3.h:102:1: note: expected 'char * __restrict__' but argument is of type 'char' __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) ^ prosir.c:12:11: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%s", s); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
2 | 0 secunde | Caught fatal signal 11 | 20 | 0 | Exemplu | |
3 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
4 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema prosir 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ă.