Pagini recente » Borderou de evaluare (job #1319679) | Borderou de evaluare (job #1390254) | Borderou de evaluare (job #3128752) | Borderou de evaluare (job #3188671) | Borderou de evaluare (job #1308724)
Borderou de evaluare (job #1308724)
Raport evaluator
Compilare:
user.cpp: In function ‘void solve(int (*)[1010][4], int, int)’:
user.cpp:38:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
vaz[aux.x][aux.y][aux.dir]=0;
^
user.cpp:43:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(d[x][y][i]>d[aux.x][aux.y][aux.dir]+(aux.dir!=i))
^
user.cpp:45:51: warning: array subscript has type ‘char’ [-Wchar-subscripts]
d[x][y][i]=d[aux.x][aux.y][aux.dir]+(aux.dir!=i);
^
user.cpp: In function ‘int main()’:
user.cpp:58:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("robot2.in", "r", stdin);
^
user.cpp:59:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("robot2.out", "w", stdout);
^
user.cpp:61:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:64:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n");
^
user.cpp:65:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(sir);
^
user.cpp:72:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&x1,&y1,&x2,&y2);
^
/tmp/cc5BkKL8.o: In function `main':
user.cpp:(.text.startup+0xa1): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 424kb | Corect! | 10 |
2 | 0ms | 1020kb | Corect! | 10 |
3 | 12ms | 1892kb | Corect! | 10 |
4 | 100ms | 7000kb | Corect! | 10 |
5 | 112ms | 7012kb | Corect! | 10 |
6 | 244ms | 14608kb | Corect! | 10 |
7 | 240ms | 14600kb | Corect! | 10 |
8 | 732ms | 36852kb | Corect! | 10 |
9 | 260ms | 29556kb | Corect! | 10 |
10 | 172ms | 14576kb | Corect! | 10 |
Punctaj total | 100 |