Borderou de evaluare (job #1640974)

Utilizator DanielRusuDaniel Rusu DanielRusu Data 8 martie 2016 20:11:28
Problema Culori3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:19:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("culori3.in","r",stdin); ^ user.cpp:20:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("culori3.out","w",stdout); ^ user.cpp: In function ‘void adun(int)’: user.cpp:64:27: warning: array subscript is above array bounds [-Warray-bounds] for(int i = mat[pos][2].V[0]; i >= 0; --i) { ^ user.cpp:65:19: warning: array subscript is above array bounds [-Warray-bounds] mat[pos][2].V[i]= 0; ^ user.cpp:72:38: warning: array subscript is above array bounds [-Warray-bounds] mat[pos][2].V[i] = mat[pos][2].V[i] + mat[pos - 1][1].V[i] + mat[pos + 1][1].V[i] + cat; ^ user.cpp:72:19: warning: array subscript is above array bounds [-Warray-bounds] mat[pos][2].V[i] = mat[pos][2].V[i] + mat[pos - 1][1].V[i] + mat[pos + 1][1].V[i] + cat; ^ user.cpp:74:31: warning: array subscript is above array bounds [-Warray-bounds] mat[pos][2].V[i] %= 10; ^ user.cpp:76:42: warning: array subscript is above array bounds [-Warray-bounds] mat[pos][2].V[0] = max(mat[pos][2].V[0], i); ^ user.cpp:76:19: warning: array subscript is above array bounds [-Warray-bounds] mat[pos][2].V[0] = max(mat[pos][2].V[0], i); ^ user.cpp: In function ‘void copie(int)’: user.cpp:83:38: warning: array subscript is above array bounds [-Warray-bounds] mat[pos][1].V[i] = mat[pos][2].V[i]; ^ user.cpp:82:35: warning: array subscript is above array bounds [-Warray-bounds] for(int i = 0; i <= mat[pos][2].V[0]; ++i) { ^ user.cpp: In function ‘void put(int)’: user.cpp:92:29: warning: array subscript is above array bounds [-Warray-bounds] Rez[i] += mat[pos][2].V[i] + cat; ^ user.cpp:91:26: warning: array subscript is above array bounds [-Warray-bounds] while(i <= mat[pos][2].V[0] || i <= Rez[0] || cat) { ^ user.cpp: In function ‘int main()’: user.cpp:83:38: warning: array subscript is above array bounds [-Warray-bounds] mat[pos][1].V[i] = mat[pos][2].V[i]; ^ user.cpp:82:35: warning: array subscript is above array bounds [-Warray-bounds] for(int i = 0; i <= mat[pos][2].V[0]; ++i) { ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms456kbOK5
20ms460kbOK5
30ms460kbOK5
40ms456kbOK5
50ms456kbOK5
60ms452kbOK5
70ms456kbOK5
84ms460kbOK5
90ms460kbOK5
108ms460kbOK5
1124ms464kbOK5
1232ms464kbOK5
1360ms464kbOK5
1488ms464kbOK5
15Depăşit448kbTime limit exceeded.0
160ms460kbOK5
170ms456kbOK5
180ms456kbOK5
198ms460kbOK5
20100ms460kbIncorect0
Punctaj total90

Ceva nu functioneaza?