Borderou de evaluare (job #1200933)

Utilizator smaraldaSmaranda Dinu smaralda Data 23 iunie 2014 21:36:29
Problema Sliding Window Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:21:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(ln); ^~~~ In file included from user.cpp:1:0: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^~~~ user.cpp:21:12: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(ln); ^ In file included from user.cpp:1:0: /usr/include/stdio.h:638:14: note: declared here extern char *gets (char *__s) __wur __attribute_deprecated__; ^~~~ user.cpp:23:25: warning: NULL used in arithmetic [-Wpointer-arith] for(i = 0; ln[i] != NULL; ++ i) ^~~~ user.cpp:19:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &n, &d); ^ user.cpp:21:13: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(ln); ^ user.cpp: In function ‘int main()’: user.cpp:44:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("slidingwindow.in", "r", stdin); ^ user.cpp:45:46: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("slidingwindow.out", "w", stdout); ^ /tmp/ccDkhuaT.o: In function `read()': user.cpp:(.text+0x21): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms2776kbIncorect0
20ms2772kbOK5
30ms2776kbOK5
484ms16340kbKilled by signal 11(SIGSEGV).0
5336ms16352kbOK5
6340ms16352kbOK5
7340ms16352kbOK5
888ms16344kbKilled by signal 11(SIGSEGV).0
9404ms16372kbOK5
10400ms16368kbOK5
11392ms16368kbOK5
12592ms16584kbOK5
13568ms16584kbOK5
14548ms16580kbOK5
15756ms18692kbOK5
16836ms18692kbOK5
17884ms18688kbOK5
18192msDepăşitMemory limit exceeded.0
190ms2768kbIncorect0
2088ms16340kbKilled by signal 11(SIGSEGV).0
Punctaj total70

Ceva nu functioneaza?