Borderou de evaluare (job #1505200)

Utilizator din99danyMatei Daniel din99dany Data 18 octombrie 2015 21:22:28
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:40: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:40: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:42: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:42: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:53: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:53: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:101: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:96:18: warning: unused variable ‘s’ [-Wunused-variable] int n, i, j, s, t, d, k; ^ user.cpp:96:24: warning: unused variable ‘d’ [-Wunused-variable] int n, i, j, s, t, d, k; ^ user.cpp:93: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:94: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:98: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
10ms312kbOKAY!10
20ms324kbOKAY!10
30ms324kbOKAY!10
40ms340kbOKAY!10
50ms352kbOKAY!10
60ms376kbOKAY!10
70ms396kbOKAY!10
80ms408kbOKAY!10
94ms300kbKilled by signal 11(SIGSEGV).0
100ms304kbOKAY!10
Punctaj total90

Ceva nu functioneaza?