Borderou de evaluare (job #1200932)

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

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/ccpqbhYZ.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
10ms800kbIncorect0
20ms868kbOK5
30ms864kbOK5
432ms5596kbKilled by signal 11(SIGSEGV).0
532ms5600kbKilled by signal 11(SIGSEGV).0
632ms5596kbKilled by signal 11(SIGSEGV).0
732ms5596kbKilled by signal 11(SIGSEGV).0
832ms5596kbKilled by signal 11(SIGSEGV).0
932ms5600kbKilled by signal 11(SIGSEGV).0
1032ms5600kbKilled by signal 11(SIGSEGV).0
1132ms5596kbKilled by signal 11(SIGSEGV).0
1232ms5600kbKilled by signal 11(SIGSEGV).0
1332ms5604kbKilled by signal 11(SIGSEGV).0
1432ms5600kbKilled by signal 11(SIGSEGV).0
1532ms5596kbKilled by signal 11(SIGSEGV).0
1632ms5600kbKilled by signal 11(SIGSEGV).0
1732ms5600kbKilled by signal 11(SIGSEGV).0
1832ms5600kbKilled by signal 11(SIGSEGV).0
190ms756kbIncorect0
2032ms5600kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?