Borderou de evaluare (job #1947340)

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

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/ccLlWD25.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
156ms5248kbWrong answer!0
2Depăşit5216kbTime limit exceeded.0
356ms5244kbWrong answer!0
4104ms5256kbOk!10
512ms5332kbWrong answer!0
6108ms5340kbOk!10
712ms5532kbKilled by signal 11(SIGSEGV).0
864ms5848kbWrong answer!0
992ms7008kbKilled by signal 11(SIGSEGV).0
10Depăşit5344kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?