Borderou de evaluare (job #1585342)

Utilizator stoianmihailStoian Mihail stoianmihail Data 30 ianuarie 2016 22:29:29
Problema Padure Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

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
10ms304kbIncorect0
20ms324kbIncorect0
30ms444kbOK10
40ms568kbIncorect0
50ms572kbIncorect0
620ms1164kbOK10
752ms1756kbIncorect0
8120ms2344kbIncorect0
9260ms3644kbIncorect0
10220ms3224kbIncorect0
Punctaj total20

Ceva nu functioneaza?