Pagini recente » Borderou de evaluare (job #2909349) | Borderou de evaluare (job #516190) | Borderou de evaluare (job #1248432) | Borderou de evaluare (job #1859658) | Borderou de evaluare (job #1488418)
Borderou de evaluare (job #1488418)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:14:14: warning: unused variable ‘last’ [-Wunused-variable]
int cnt, last, i, j, a, b, pos;
^
user.cpp:12:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("towerx.in", "r", stdin);
^
user.cpp:13:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("towerx.out", "w", stdout);
^
user.cpp:16:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:21:12: warning: array subscript is above array bounds [-Warray-bounds]
d[b][1] = 1;
^
user.cpp:23:26: warning: array subscript is above array bounds [-Warray-bounds]
d[b][j] = d[a][j - 1] + d[b][j - 1];
^
user.cpp:23:40: warning: array subscript is above array bounds [-Warray-bounds]
d[b][j] = d[a][j - 1] + d[b][j - 1];
^
user.cpp:23:16: warning: array subscript is above array bounds [-Warray-bounds]
d[b][j] = d[a][j - 1] + d[b][j - 1];
^
user.cpp:25:29: warning: array subscript is above array bounds [-Warray-bounds]
d[b][j] -= i;
^
user.cpp:28:20: warning: array subscript is above array bounds [-Warray-bounds]
nr[i] = d[b][n];
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 268kb | Incorect | 0 |
2 | Depăşit | 240kb | Time limit exceeded. | 0 |
3 | Depăşit | 240kb | Time limit exceeded. | 0 |
4 | Depăşit | 248kb | Time limit exceeded. | 0 |
5 | Depăşit | 248kb | Time limit exceeded. | 0 |
6 | Depăşit | 248kb | Time limit exceeded. | 0 |
7 | Depăşit | 260kb | Time limit exceeded. | 0 |
8 | Depăşit | 284kb | Time limit exceeded. | 0 |
9 | Depăşit | 304kb | Time limit exceeded. | 0 |
10 | Depăşit | 312kb | Time limit exceeded. | 0 |
Punctaj total | 0 |