Borderou de evaluare (job #1505209)

Utilizator din99danyMatei Daniel din99dany Data 18 octombrie 2015 21:28:06
Problema Sudest Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘void lee(int)’: user.cpp:38:94: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( x_aa >= 1 && y_aa >= 1 && x_aa <= n && y_aa <= n && v[x_aa][y_aa][0] < v[x[i]][y[i]][0] + vv[x_aa][y_aa] ){ ^ user.cpp:38:100: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( x_aa >= 1 && y_aa >= 1 && x_aa <= n && y_aa <= n && v[x_aa][y_aa][0] < v[x[i]][y[i]][0] + vv[x_aa][y_aa] ){ ^ user.cpp:41:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[x_aa][y_aa][0] = v[x[i]][y[i]][0] + vv[x_aa][y_aa]; ^ user.cpp:41:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[x_aa][y_aa][0] = v[x[i]][y[i]][0] + vv[x_aa][y_aa]; ^ user.cpp:52:100: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( x_aa2 >= 1 && y_aa2 >= 1 && x_aa2 <= n && y_aa2 <= n && v[x_aa2][y_aa2][0] < v[x[i]][y[i]][0] + vv[x_aa2][y_aa2] ){ ^ user.cpp:52:106: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( x_aa2 >= 1 && y_aa2 >= 1 && x_aa2 <= n && y_aa2 <= n && v[x_aa2][y_aa2][0] < v[x[i]][y[i]][0] + vv[x_aa2][y_aa2] ){ ^ user.cpp:55:44: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[x_aa2][y_aa2][0] = v[x[i]][y[i]][0] + vv[x_aa2][y_aa2]; ^ user.cpp:55:50: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[x_aa2][y_aa2][0] = v[x[i]][y[i]][0] + vv[x_aa2][y_aa2]; ^ user.cpp:23:12: warning: unused variable ‘j’ [-Wunused-variable] int i, j, s, d, t, k, x_aa, y_aa, x_aa2, y_aa2; ^ user.cpp:23:24: warning: unused variable ‘k’ [-Wunused-variable] int i, j, s, d, t, k, x_aa, y_aa, x_aa2, y_aa2; ^ user.cpp: In function ‘int main()’: user.cpp:98:55: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=] for( j = 1; j <= n; ++j ) scanf("%d",&vv[i][j]); ^ user.cpp:93:18: warning: unused variable ‘s’ [-Wunused-variable] int n, i, j, s, t, d, k; ^ user.cpp:93:24: warning: unused variable ‘d’ [-Wunused-variable] int n, i, j, s, t, d, k; ^ user.cpp:90:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sudest.in","r",stdin); ^ user.cpp:91:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sudest.out","w",stdout); ^ user.cpp:96:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms316kbOKAY!10
20ms324kbOKAY!10
30ms332kbOKAY!10
40ms348kbOKAY!10
50ms356kbOKAY!10
60ms376kbOKAY!10
70ms396kbOKAY!10
80ms412kbOKAY!10
944ms420kbRaspuns gresit!0
100ms308kbOKAY!10
Punctaj total90

Ceva nu functioneaza?