Pagini recente » Borderou de evaluare (job #3239426) | Borderou de evaluare (job #374394) | Borderou de evaluare (job #711984) | Borderou de evaluare (job #2012838) | Borderou de evaluare (job #2253884)
Borderou de evaluare (job #2253884)
Raport evaluator
Compilare:
user.cpp: In function ‘void ReadInput()’:
user.cpp:25:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d", &mat[i][j]);
^
user.cpp: In function ‘int Solve()’:
user.cpp:66:78: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
if(Valid(new_x, new_y) && !affected[new_x][new_y] && mat[new_x][new_y] < h & mat[new_x][new_y] != 0) {
~~~~~~~~~~~~~~~~~~^~~
user.cpp: In function ‘void ReadInput()’:
user.cpp:21:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &m, &h);
^
user.cpp:25:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &mat[i][j]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 860kb | OK | 10 |
2 | 0ms | 944kb | OK | 10 |
3 | 272ms | 2924kb | OK | 10 |
4 | 12ms | 1056kb | OK | 10 |
5 | 48ms | 1840kb | OK | 10 |
6 | 196ms | 3452kb | OK | 10 |
7 | 224ms | 2932kb | OK | 10 |
8 | 52ms | 2164kb | OK | 10 |
9 | 184ms | 2768kb | OK | 10 |
10 | 208ms | 2936kb | OK | 10 |
Punctaj total | 100 |