Borderou de evaluare (job #2157705)

Utilizator bogdi1bogdan bancuta bogdi1 Data 9 martie 2018 20:29:53
Problema Incantatii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:23:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:23:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s); ^ In file included from /usr/include/c++/5/cstdio:42:0, from user.cpp:1: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^ user.cpp:26:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[k]+=f[s[i]]*1LL*put53[j]; ^ user.cpp:11:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] { freopen("incantatii.in", "r",stdin); ^ user.cpp:12:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("incantatii.out", "w",stdout); ^ user.cpp:14:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:23:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccy3Lh5M.o: In function `main': user.cpp:(.text.startup+0xc1): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms1424kbOK5
20ms1436kbOK5
30ms1428kbOK5
40ms1436kbOK5
50ms1432kbOK5
64ms1436kbOK5
7Depăşit7168kbTime limit exceeded.0
8Depăşit9156kbTime limit exceeded.0
9560ms5160kbOK5
10100ms1800kbOK5
11340ms2552kbOK5
12Depăşit7120kbTime limit exceeded.0
13116ms1740kbOK5
14Depăşit7524kbTime limit exceeded.0
15Depăşit7596kbTime limit exceeded.0
16Depăşit5164kbTime limit exceeded.0
17448ms2948kbOK5
18392ms2672kbOK5
19Depăşit5100kbTime limit exceeded.0
20Depăşit5088kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?