Borderou de evaluare (job #1676153)

Utilizator stoianmihailStoian Mihail stoianmihail Data 5 aprilie 2016 19:06:14
Problema Cub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘cell give(int, int, int)’: user.cpp:28:24: warning: narrowing conversion of ‘f’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] return (cell){f, l, c}; ^ user.cpp:28:24: warning: narrowing conversion of ‘l’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] user.cpp:28:24: warning: narrowing conversion of ‘c’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] user.cpp: In function ‘void enqueue(cell, int)’: user.cpp:113:14: warning: array subscript has type ‘char’ [-Wchar-subscripts] dist[curr.f][curr.l][curr.c] = cost; ^ user.cpp:113:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] dist[curr.f][curr.l][curr.c] = cost; ^ user.cpp:113:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] dist[curr.f][curr.l][curr.c] = cost; ^ user.cpp: In function ‘void dequeue(cell*, int*)’: user.cpp:118:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] (*cost) = dist[curr -> f][curr -> l][curr -> c] + 1; ^ user.cpp:118:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] (*cost) = dist[curr -> f][curr -> l][curr -> c] + 1; ^ user.cpp:118:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] (*cost) = dist[curr -> f][curr -> l][curr -> c] + 1; ^ user.cpp: In function ‘void lee(cell)’: user.cpp:132:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (dist[next.f][next.l][next.c] == code[0]) { ^ user.cpp:132:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (dist[next.f][next.l][next.c] == code[0]) { ^ user.cpp:132:38: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (dist[next.f][next.l][next.c] == code[0]) { ^ user.cpp: In function ‘int main()’: user.cpp:164:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < hole.size(); i++) { ^ user.cpp:166:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] if ((dist[hole[i].f][hole[i].l][hole[i].c] != code[1]) && (dist[hole[i].f][hole[i].l][hole[i].c] != code[0])) { ^ user.cpp:166:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] if ((dist[hole[i].f][hole[i].l][hole[i].c] != code[1]) && (dist[hole[i].f][hole[i].l][hole[i].c] != code[0])) { ^ user.cpp:166:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] if ((dist[hole[i].f][hole[i].l][hole[i].c] != code[1]) && (dist[hole[i].f][hole[i].l][hole[i].c] != code[0])) { ^ user.cpp:166:78: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms316kbOK10
20ms308kbOK10
30ms308kbOK10
40ms320kbOK10
50ms324kbOK10
64ms324kbIncorect0
70ms316kbIncorect0
80ms316kbOK10
90ms320kbOK10
104ms320kbOK10
Punctaj total80

Ceva nu functioneaza?