Borderou de evaluare (job #1585386)

Utilizator stoianmihailStoian Mihail stoianmihail Data 30 ianuarie 2016 23:11:07
Problema Padure Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void fill(pair)’: user.cpp:44:22: warning: narrowing conversion of ‘(((int)node.pair::l) + ((int)delta[i][0]))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] next = {node.l + delta[i][0], node.c + delta[i][1]}; ^ user.cpp:44:44: warning: narrowing conversion of ‘(((int)node.pair::c) + ((int)delta[i][1]))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] next = {node.l + delta[i][0], node.c + delta[i][1]}; ^ user.cpp: In function ‘void bfs(pair)’: user.cpp:72:22: warning: narrowing conversion of ‘(((int)node.pair::l) + ((int)delta[i][0]))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] next = {node.l + delta[i][0], node.c + delta[i][1]}; ^ user.cpp:72:44: warning: narrowing conversion of ‘(((int)node.pair::c) + ((int)delta[i][1]))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] next = {node.l + delta[i][0], node.c + delta[i][1]}; ^ user.cpp: In function ‘int main()’: user.cpp:85: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:85:82: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘short int*’ [-Wformat=] user.cpp:85:82: warning: format ‘%d’ expects argument of type ‘int*’, but argument 7 has type ‘short int*’ [-Wformat=] user.cpp:85:82: warning: format ‘%d’ expects argument of type ‘int*’, but argument 8 has type ‘short int*’ [-Wformat=] user.cpp:88:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=] fscanf(f, "%d", &tree[i][j]); ^ user.cpp:82:13: warning: unused variable ‘x’ [-Wunused-variable] int i, j, x; ^ user.cpp:85: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:88: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]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
132ms2272kbKilled by signal 11(SIGSEGV).0
232ms2276kbKilled by signal 11(SIGSEGV).0
332ms2276kbKilled by signal 11(SIGSEGV).0
432ms2272kbKilled by signal 11(SIGSEGV).0
532ms2268kbKilled by signal 11(SIGSEGV).0
632ms2276kbKilled by signal 11(SIGSEGV).0
732ms2272kbKilled by signal 11(SIGSEGV).0
824ms2280kbKilled by signal 11(SIGSEGV).0
920ms2268kbKilled by signal 11(SIGSEGV).0
1028ms2276kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?