Pagini recente » Borderou de evaluare (job #1861344) | Borderou de evaluare (job #2605296) | Borderou de evaluare (job #396711) | Cod sursa (job #699902) | Borderou de evaluare (job #1649639)
Borderou de evaluare (job #1649639)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:99:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
go(x , y , dir[v[p]]);
^
user.cpp:68:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cobai.in","r",stdin);
^
user.cpp:69:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cobai.out","w",stdout);
^
user.cpp:71:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &n, &m);
^
user.cpp:72:42: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
for (i = 1; i <= n; ++i) gets(a[i]+1);
^
user.cpp:73:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(v+1); k = strlen(v+1);
^
user.cpp:27:26: warning: ‘y’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return (x - 1) * m + y;
^
user.cpp:80:29: note: ‘y’ was declared here
bool found = 0; int x , y;
^
user.cpp:27:15: warning: ‘x’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return (x - 1) * m + y;
^
user.cpp:80:25: note: ‘x’ was declared here
bool found = 0; int x , y;
^
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:72: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/ccmilZgf.o: In function `main':
user.cpp:(.text.startup+0x8c): warning: the `gets' function is dangerous and should not be used.
user.cpp:(.text.startup+0xb5): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 296kb | Ok! | 5 |
2 | 0ms | 300kb | Ok! | 5 |
3 | 0ms | 300kb | Ok! | 5 |
4 | 0ms | 300kb | Ok! | 5 |
5 | 0ms | 296kb | Ok! | 5 |
6 | 0ms | 296kb | Ok! | 5 |
7 | 0ms | 300kb | Ok! | 5 |
8 | 0ms | 300kb | Ok! | 5 |
9 | 0ms | 308kb | Ok! | 5 |
10 | 0ms | 304kb | Ok! | 5 |
11 | 0ms | 304kb | Ok! | 5 |
12 | 4ms | 308kb | Ok! | 5 |
13 | 4ms | 300kb | Ok! | 5 |
14 | 8ms | 308kb | Ok! | 5 |
15 | 4ms | 300kb | Ok! | 5 |
16 | 4ms | 304kb | Ok! | 5 |
17 | 0ms | 304kb | Ok! | 5 |
18 | 24ms | 304kb | Ok! | 5 |
19 | 24ms | 308kb | Ok! | 5 |
20 | 32ms | 304kb | Ok! | 5 |
Punctaj total | 100 |