Pagini recente » Borderou de evaluare (job #408745) | Borderou de evaluare (job #2974865) | Borderou de evaluare (job #971850) | Borderou de evaluare (job #241794) | Borderou de evaluare (job #1394305)
Borderou de evaluare (job #1394305)
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 |
1 | 0ms | 288kb | OK | 10 |
2 | 0ms | 308kb | OK | 10 |
3 | 12ms | 400kb | OK | 10 |
4 | Depăşit | 612kb | Time limit exceeded. | 0 |
5 | 8ms | 524kb | OK | 10 |
6 | Depăşit | 724kb | Time limit exceeded. | 0 |
7 | Depăşit | 3036kb | Time limit exceeded. | 0 |
8 | Depăşit | 1828kb | Time limit exceeded. | 0 |
9 | Depăşit | 1844kb | Time limit exceeded. | 0 |
10 | 16ms | 588kb | OK | 10 |
Punctaj total | 50 |