Pagini recente » Borderou de evaluare (job #2451948) | Borderou de evaluare (job #676940) | Borderou de evaluare (job #703436) | Borderou de evaluare (job #1876977) | Borderou de evaluare (job #1585345)
Borderou de evaluare (job #1585345)
Raport evaluator
Compilare:
user.cpp: In function ‘void dijkstra(cell)’:
user.cpp:51:29: warning: narrowing conversion of ‘(((int)curr.cell::loc.pair::l) + ((int)delta[i][0]))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
next = {{curr.loc.l + delta[i][0], curr.loc.c + delta[i][1]}, d[curr.loc.l][curr.loc.c] + 1};
^
user.cpp:51:55: warning: narrowing conversion of ‘(((int)curr.cell::loc.pair::c) + ((int)delta[i][1]))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing]
next = {{curr.loc.l + delta[i][0], curr.loc.c + delta[i][1]}, d[curr.loc.l][curr.loc.c] + 1};
^
user.cpp: In function ‘int main()’:
user.cpp:71:82: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=]
fscanf(f, "%d %d %d %d %d %d", &N, &M, &start.l, &start.c, &finish.l, &finish.c);
^
user.cpp:71:82: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘short int*’ [-Wformat=]
user.cpp:71:82: warning: format ‘%d’ expects argument of type ‘int*’, but argument 7 has type ‘short int*’ [-Wformat=]
user.cpp:71:82: warning: format ‘%d’ expects argument of type ‘int*’, but argument 8 has type ‘short int*’ [-Wformat=]
user.cpp:74:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=]
fscanf(f, "%d", &tree[i][j]);
^
user.cpp:68:13: warning: unused variable ‘x’ [-Wunused-variable]
int i, j, x;
^
user.cpp:71:83: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d %d %d %d %d %d", &N, &M, &start.l, &start.c, &finish.l, &finish.c);
^
user.cpp:74:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d", &tree[i][j]);
^
user.cpp:93:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("padure.out", "w", stdout);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 316kb | Incorect | 0 |
2 | 0ms | 356kb | Incorect | 0 |
3 | 0ms | 556kb | OK | 10 |
4 | 0ms | 768kb | Incorect | 0 |
5 | 0ms | 772kb | Incorect | 0 |
6 | 20ms | 1748kb | OK | 10 |
7 | 56ms | 2736kb | Incorect | 0 |
8 | 120ms | 3716kb | Incorect | 0 |
9 | 264ms | 6664kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 260ms | 7412kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 20 |