Borderou de evaluare (job #1947310)

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

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:93:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] st = 0; last = -1; dr = d[stx][sty]; ^ user.cpp:93: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/ccj2EDkS.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
10ms1340kbOk!10
20ms1308kbOk!10
30ms1336kbOk!10
40ms1384kbOk!10
54ms1780kbOk!10
60ms1780kbOk!10
78ms2772kbKilled by signal 11(SIGSEGV).0
844ms3868kbWrong answer!0
980ms7000kbKilled by signal 11(SIGSEGV).0
104ms1816kbWrong answer!0
Punctaj total60

Ceva nu functioneaza?