Borderou de evaluare (job #1947376)

Utilizator ionutpop118Pop Ioan Cristian ionutpop118 Data 30 martie 2017 22:00:50
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: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/cccPXLS6.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
18ms5236kbOk!10
28ms5236kbOk!10
38ms5236kbOk!10
48ms5248kbOk!10
58ms5328kbOk!10
68ms5332kbOk!10
712ms5532kbKilled by signal 11(SIGSEGV).0
856ms5848kbWrong answer!0
992ms7012kbKilled by signal 11(SIGSEGV).0
108ms5368kbOk!10
Punctaj total70

Ceva nu functioneaza?