Pagini recente » Borderou de evaluare (job #1319223) | Borderou de evaluare (job #2297614) | Borderou de evaluare (job #883246) | Borderou de evaluare (job #2848440) | Borderou de evaluare (job #1979398)
Borderou de evaluare (job #1979398)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:8:70: warning: unused variable ‘ok’ [-Wunused-variable]
int r,co,i,j,x,y,nx,ny,f=1,b=0,st=0,dr=0,mij,last=-1,ix,iy,fx,fy,ok=0;
^
user.cpp:6:35: 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:7:37: 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:9:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n",&r,&co);
^
user.cpp:12:22: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(ch[i]+1);
^
user.cpp:22:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n");
^
user.cpp:81:21: warning: ‘fy’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (viz[fx][fy]==1)
^
user.cpp:81:21: warning: ‘fx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
user.cpp:8:61: warning: ‘iy’ may be used uninitialized in this function [-Wmaybe-uninitialized]
int r,co,i,j,x,y,nx,ny,f=1,b=0,st=0,dr=0,mij,last=-1,ix,iy,fx,fy,ok=0;
^
user.cpp:8:58: warning: ‘ix’ may be used uninitialized in this function [-Wmaybe-uninitialized]
int r,co,i,j,x,y,nx,ny,f=1,b=0,st=0,dr=0,mij,last=-1,ix,iy,fx,fy,ok=0;
^
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:12:22:
/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/cc3ExdwH.o: In function `main':
user.cpp:(.text.startup+0x90): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 368kb | Ok! | 10 |
2 | 0ms | 328kb | Ok! | 10 |
3 | 0ms | 372kb | Ok! | 10 |
4 | 0ms | 456kb | Ok! | 10 |
5 | 0ms | 1248kb | Ok! | 10 |
6 | 4ms | 1244kb | Ok! | 10 |
7 | 16ms | 3632kb | Ok! | 10 |
8 | 44ms | 6660kb | Ok! | 10 |
9 | 168ms | 16928kb | Ok! | 10 |
10 | 0ms | 1228kb | Ok! | 10 |
Punctaj total | 100 |