Borderou de evaluare (job #2152575)

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

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/ccNVRs5e.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
10ms4972kbOk!10
20ms5028kbOk!10
30ms5356kbOk!10
44ms5564kbOk!10
54ms5560kbOk!10
628ms5900kbOk!10
7160ms7368kbOk!10
8316ms10944kbOk!10
9416ms11404kbOk!10
10520ms13092kbOk!10
Punctaj total100

Ceva nu functioneaza?