Pagini recente » Borderou de evaluare (job #2035282) | Borderou de evaluare (job #1585342)
Borderou de evaluare (job #1585342)
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:51:97: warning: narrowing conversion of ‘(((int)d[((int)curr.cell::loc.pair::l)][((int)curr.cell::loc.pair::c)]) + 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 | 304kb | Incorect | 0 |
2 | 0ms | 324kb | Incorect | 0 |
3 | 0ms | 444kb | OK | 10 |
4 | 0ms | 568kb | Incorect | 0 |
5 | 0ms | 572kb | Incorect | 0 |
6 | 20ms | 1164kb | OK | 10 |
7 | 52ms | 1756kb | Incorect | 0 |
8 | 120ms | 2344kb | Incorect | 0 |
9 | 260ms | 3644kb | Incorect | 0 |
10 | 220ms | 3224kb | Incorect | 0 |
Punctaj total | 20 |