Borderou de evaluare (job #1947333)

Utilizator ionutpop118Pop Ioan Cristian ionutpop118 Data 30 martie 2017 21:46:56
Problema Barbar Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘bool bfs(int)’: user.cpp:25:12: warning: array subscript has type ‘char’ [-Wchar-subscripts] viz[stx][sty] = 1; ^ user.cpp:25:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] viz[stx][sty] = 1; ^ user.cpp: In function ‘int main()’: user.cpp:88:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] st = 0; last = -1; dr = d[stx][sty]; ^ user.cpp:88:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] st = 0; last = -1; dr = d[stx][sty]; ^ user.cpp:51:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("barbar.in", "r", stdin); ^ user.cpp:52:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("barbar.out", "w", stdout); ^ user.cpp:55:29: 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:57:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[i] + 1); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:57:23: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/cc0XYP98.o: In function `main': user.cpp:(.text.startup+0x85): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms5236kbOk!10
24ms5232kbOk!10
34ms5240kbOk!10
44ms5252kbOk!10
58ms5332kbOk!10
68ms5328kbOk!10
712ms5532kbKilled by signal 11(SIGSEGV).0
848ms5852kbWrong answer!0
988ms7012kbKilled by signal 11(SIGSEGV).0
108ms5372kbOk!10
Punctaj total70

Ceva nu functioneaza?