Borderou de evaluare (job #1585348)

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

Raport evaluator

Compilare: user.cpp: In function ‘void dijkstra(cell)’: user.cpp:59: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:59: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:59: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:79: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:79:82: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘short int*’ [-Wformat=] user.cpp:79:82: warning: format ‘%d’ expects argument of type ‘int*’, but argument 7 has type ‘short int*’ [-Wformat=] user.cpp:79:82: warning: format ‘%d’ expects argument of type ‘int*’, but argument 8 has type ‘short int*’ [-Wformat=] user.cpp:82:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=] fscanf(f, "%d", &tree[i][j]); ^ user.cpp:76:13: warning: unused variable ‘x’ [-Wunused-variable] int i, j, x; ^ user.cpp:79: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:82: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:101: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
10ms308kbIncorect0
20ms328kbIncorect0
380ms444kbOK10
4140ms576kbIncorect0
588ms576kbIncorect0
6Depăşit1140kbTime limit exceeded.0
7Depăşit1736kbTime limit exceeded.0
8Depăşit2320kbTime limit exceeded.0
9Depăşit3616kbTime limit exceeded.0
10Depăşit3192kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?