Borderou de evaluare (job #1200935)

Utilizator smaraldaSmaranda Dinu smaralda Data 23 iunie 2014 21:39:27
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:20: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:20: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:22:25: warning: NULL used in arithmetic [-Wpointer-arith] for(i = 0; ln[i] != NULL; ++ i) ^~~~ user.cpp:18: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:20: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:43: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:44: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/cciLvrHx.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
30ms2772kbOK5
484ms16344kbKilled by signal 11(SIGSEGV).0
5344ms16352kbOK5
6344ms16352kbOK5
7340ms16348kbOK5
888ms16344kbKilled by signal 11(SIGSEGV).0
9420ms16368kbOK5
10416ms16368kbOK5
11404ms16372kbOK5
12604ms16584kbOK5
13580ms16588kbOK5
14552ms16584kbOK5
15764ms18692kbOK5
16844ms18688kbOK5
17896ms18692kbOK5
18192msDepăşitMemory limit exceeded.0
190ms2768kbIncorect0
2088ms16344kbKilled by signal 11(SIGSEGV).0
Punctaj total70

Ceva nu functioneaza?