Pagini recente » Cod sursa (job #2517260) | Cod sursa (job #3275389) | Cod sursa (job #2771023) | Cod sursa (job #262707) | Borderou de evaluare (job #1505200)
Borderou de evaluare (job #1505200)
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 |
1 | 0ms | 312kb | OKAY! | 10 |
2 | 0ms | 324kb | OKAY! | 10 |
3 | 0ms | 324kb | OKAY! | 10 |
4 | 0ms | 340kb | OKAY! | 10 |
5 | 0ms | 352kb | OKAY! | 10 |
6 | 0ms | 376kb | OKAY! | 10 |
7 | 0ms | 396kb | OKAY! | 10 |
8 | 0ms | 408kb | OKAY! | 10 |
9 | 4ms | 300kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 304kb | OKAY! | 10 |
Punctaj total | 90 |