Pagini recente » Borderou de evaluare (job #2806747) | Borderou de evaluare (job #1825853) | Borderou de evaluare (job #2344931) | Borderou de evaluare (job #2181094) | Borderou de evaluare (job #1541543)
Borderou de evaluare (job #1541543)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:55:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(mat[i][j]='2')
^
user.cpp:67:47: warning: array subscript has type ‘char’ [-Wchar-subscripts]
int arieC = arii[mat[i - 1][j]];
^
user.cpp:69:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
arieC += arii[mat[i + 1][j]];
^
user.cpp:71:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
arieC += arii[mat[i][j - 1]];
^
user.cpp:73:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
arieC += arii[mat[i][j + 1]];
^
user.cpp:25:18: warning: variable ‘coordx’ set but not used [-Wunused-but-set-variable]
int arieMaxC,coordx,coordy;
^
user.cpp:25:25: warning: variable ‘coordy’ set but not used [-Wunused-but-set-variable]
int arieMaxC,coordx,coordy;
^
user.cpp:61:9: warning: unused variable ‘arieC’ [-Wunused-variable]
int arieC=0;
^
user.cpp:26:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vila.in","r",stdin);
^
user.cpp:27:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vila.out","w",stdout);
^
user.cpp:31:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n",&m,&n);
^
user.cpp:33:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(1+mat[i]);
^
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:33: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/ccsLgL7T.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 | 272kb | Incorect | 0 |
2 | 0ms | 280kb | Incorect | 0 |
3 | 0ms | 568kb | Incorect | 0 |
4 | 0ms | 544kb | Incorect | 0 |
5 | 0ms | 476kb | Incorect | 0 |
6 | 0ms | 308kb | Incorect | 0 |
7 | 0ms | 468kb | Incorect | 0 |
8 | 0ms | 312kb | Incorect | 0 |
9 | 0ms | 316kb | Incorect | 0 |
10 | 0ms | 584kb | Incorect | 0 |
Punctaj total | 0 |