Borderou de evaluare (job #1585345)

Utilizator stoianmihailStoian Mihail stoianmihail Data 30 ianuarie 2016 22:31:46
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: 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
10ms316kbIncorect0
20ms356kbIncorect0
30ms556kbOK10
40ms768kbIncorect0
50ms772kbIncorect0
620ms1748kbOK10
756ms2736kbIncorect0
8120ms3716kbIncorect0
9264ms6664kbKilled by signal 11(SIGSEGV).0
10260ms7412kbKilled by signal 11(SIGSEGV).0
Punctaj total20

Ceva nu functioneaza?