Borderou de evaluare (job #2157692)

Utilizator bogdi1bogdan bancuta bogdi1 Data 9 martie 2018 20:19:12
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:14: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:14: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:14: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:9: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:10: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:12:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:14:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/ccapkBV0.o: In function `main': user.cpp:(.text.startup+0x81): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1428kbOK5
20ms1480kbOK5
30ms1460kbOK5
40ms1424kbOK5
50ms1408kbOK5
64ms1436kbOK5
7Depăşit7180kbTime limit exceeded.0
8Depăşit9160kbTime limit exceeded.0
9584ms5224kbOK5
10100ms1748kbOK5
11352ms2596kbOK5
12Depăşit7188kbTime limit exceeded.0
13116ms1804kbOK5
14Depăşit7680kbTime limit exceeded.0
15Depăşit7600kbTime limit exceeded.0
16Depăşit5140kbTime limit exceeded.0
17464ms2856kbOK5
18400ms2708kbOK5
19Depăşit5112kbTime limit exceeded.0
20Depăşit5160kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?