Pagini recente » Borderou de evaluare (job #2435876) | Borderou de evaluare (job #1129435) | Borderou de evaluare (job #1655876) | Borderou de evaluare (job #2437890) | Borderou de evaluare (job #1263129)
Borderou de evaluare (job #1263129)
Raport evaluator
Compilare:
user.cpp: In function ‘void print(char, char)’:
user.cpp:27:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
print(lasti[x][y], lastj[x][y]);
^
user.cpp:27:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
print(lasti[x][y], lastj[x][y]);
^
user.cpp:27:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
print(lasti[x][y], lastj[x][y]);
^
user.cpp:27:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
print(lasti[x][y], lastj[x][y]);
^
user.cpp: In function ‘int main()’:
user.cpp:40:36: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
scanf("%d", &grid[i][j]);
^
user.cpp:62:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
i = lasti[x[step]][y[step]];
^
user.cpp:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts]
i = lasti[x[step]][y[step]];
^
user.cpp:63:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
j = lastj[x[step]][y[step]];
^
user.cpp:63:35: warning: array subscript has type ‘char’ [-Wchar-subscripts]
j = lastj[x[step]][y[step]];
^
user.cpp:32:37: 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:33:39: 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:37:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:40:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &grid[i][j]);
^
user.cpp:41:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &nMoves);
^
user.cpp:45:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &nSteps);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 292kb | OKAY! | 10 |
2 | 0ms | 300kb | OKAY! | 10 |
3 | 0ms | 312kb | OKAY! | 10 |
4 | 0ms | 312kb | OKAY! | 10 |
5 | 0ms | 328kb | OKAY! | 10 |
6 | 0ms | 332kb | OKAY! | 10 |
7 | 0ms | 340kb | OKAY! | 10 |
8 | 0ms | 340kb | OKAY! | 10 |
9 | 4ms | 336kb | Raspuns gresit! | 0 |
10 | 0ms | 296kb | OKAY! | 10 |
Punctaj total | 90 |