Borderou de evaluare (job #2152560)

Utilizator stelian2000Stelian Chichirim stelian2000 Data 5 martie 2018 17:33:10
Problema Teroristi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int bfs()’: user.cpp:22:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<v[nod].size();i++) ^ user.cpp: In function ‘int main()’: user.cpp:40:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(sir+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:40:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(sir+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:40:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations] gets(sir+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:85:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<v[dest].size();i++) ^ user.cpp:36:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("teroristi.in","r",stdin); ^ user.cpp:37:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("teroristi.out","w",stdout); ^ user.cpp:39:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n",&n,&m); ^ user.cpp:40:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(sir+1); ^ user.cpp:57:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c %c\n",&c1[i],&c2[i]); ^ /tmp/ccp833t0.o: In function `main': user.cpp:(.text.startup+0x6c): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms4976kbOk!10
20ms5004kbKilled by signal 11(SIGSEGV).0
30ms5268kbKilled by signal 11(SIGSEGV).0
40ms5444kbKilled by signal 11(SIGSEGV).0
54ms5444kbKilled by signal 11(SIGSEGV).0
612ms5784kbKilled by signal 11(SIGSEGV).0
768ms7252kbKilled by signal 11(SIGSEGV).0
8136ms8856kbKilled by signal 11(SIGSEGV).0
9176ms9372kbKilled by signal 11(SIGSEGV).0
10224ms10532kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?