Borderou de evaluare (job #1218276)

Utilizator paunmatei7FMI Paun Matei paunmatei7 Data 10 august 2014 12:08:38
Problema Zone 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int bfs(int)’: user.cpp:42:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < v[Nod].size(); ++i) ^ user.cpp:43:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(v[v[Nod][i]].size() >= k && Ap[v[Nod][i]] == 0){ ^ user.cpp: In function ‘void Fill2(int, int)’: user.cpp:55:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(inside(x + Dx[i], y + Dy[i]) == 1) ^ user.cpp: In function ‘int main()’: user.cpp:63:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zone2.in", "r", stdin); ^ user.cpp:64:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zone2.out", "w", stdout); ^ user.cpp:65:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d\n", &n, &m, &k); ^ user.cpp:67: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:67: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/cctw4y0B.o: In function `main': user.cpp:(.text.startup+0x95): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms824kbKilled by signal 11(SIGSEGV).0
20ms424kbIncorect0
30ms400kbKilled by signal 11(SIGSEGV).0
40ms436kbKilled by signal 11(SIGSEGV).0
50ms480kbKilled by signal 11(SIGSEGV).0
60ms476kbKilled by signal 11(SIGSEGV).0
70ms476kbKilled by signal 11(SIGSEGV).0
84ms644kbKilled by signal 11(SIGSEGV).0
98ms832kbKilled by signal 11(SIGSEGV).0
108ms832kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?