Borderou de evaluare (job #1394305)

Utilizator DenisacheDenis Ehorovici Denisache Data 20 martie 2015 10:48:39
Problema Muzeu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘void fill(int, int, int)’: user.cpp:9:23: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (d[i+1][j]==-1 && i+1<=n || val+1<d[i+1][j]) fill(i+1,j,val+1); ^ user.cpp:10:23: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (d[i][j+1]==-1 && j+1<=n || val+1<d[i][j+1]) fill(i,j+1,val+1); ^ user.cpp:11:23: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (d[i-1][j]==-1 && i-1>0 || val+1<d[i-1][j]) fill(i-1,j,val+1); ^ user.cpp:12:23: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (d[i][j-1]==-1 && j-1>0 || val+1<d[i][j-1]) fill(i,j-1,val+1); ^ user.cpp: In function ‘int main()’: user.cpp:16:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("muzeu.in","r",stdin); ^ user.cpp:17:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("muzeu.out","w",stdout); ^ user.cpp:18:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:19:42: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] for (int i=1;i<=n;i++) gets(mat[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:19:42: /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/cc5h4Yb7.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
10ms288kbOK10
20ms308kbOK10
312ms400kbOK10
4Depăşit612kbTime limit exceeded.0
58ms524kbOK10
6Depăşit724kbTime limit exceeded.0
7Depăşit3036kbTime limit exceeded.0
8Depăşit1828kbTime limit exceeded.0
9Depăşit1844kbTime limit exceeded.0
1016ms588kbOK10
Punctaj total50

Ceva nu functioneaza?