Borderou de evaluare (job #2177068)

Utilizator MiricaMateiMirica Matei MiricaMatei Data 18 martie 2018 12:33:28
Problema Karma Status done
Runda Algoritmiada 2018 Runda PreONI Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:19:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s[i] + 1); ^ 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:19:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s[i] + 1); ^ 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:19:18: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(s[i] + 1); ^ 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:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("karma.in", "r", stdin); ^ user.cpp:15:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("karma.out", "w", stdout); ^ user.cpp:17:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d ", &n, &m); ^ user.cpp:19:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s[i] + 1); ^ user.cpp:23:9: warning: ‘b’ may be used uninitialized in this function [-Wmaybe-uninitialized] int b; ^ /tmp/ccBBf4Ji.o: In function `main': user.cpp:(.text.startup+0x83): warning: the `gets' function is dangerous and should not be used.
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms7468kbOK!0
24ms9516kbOK!0
324ms44356kbOK!10
412ms11564kbOK!10
5324ms40468kbOK!10
6Depăşit87200kbTime limit exceeded.0
7Depăşit87124kbTime limit exceeded.0
8Depăşit87124kbTime limit exceeded.0
9Depăşit87072kbTime limit exceeded.0
10Depăşit87168kbTime limit exceeded.0
110ms5336kbOK!10
124ms11548kbOK!10
Punctaj total50

Ceva nu functioneaza?