Borderou de evaluare (job #1488418)

Utilizator smaraldaSmaranda Dinu smaralda Data 18 septembrie 2015 21:51:23
Problema Towerx Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

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
10ms268kbIncorect0
2Depăşit240kbTime limit exceeded.0
3Depăşit240kbTime limit exceeded.0
4Depăşit248kbTime limit exceeded.0
5Depăşit248kbTime limit exceeded.0
6Depăşit248kbTime limit exceeded.0
7Depăşit260kbTime limit exceeded.0
8Depăşit284kbTime limit exceeded.0
9Depăşit304kbTime limit exceeded.0
10Depăşit312kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?