Borderou de evaluare (job #2287306)

Utilizator raduandreicaRadu Andreica raduandreica Data 21 noiembrie 2018 19:20:35
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void pop(int)': main.cpp:25:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while (h[2][b]!=x) b=h[2][h[2][b]]; ~~~~~~~^~~ main.cpp:28:24: warning: converting to non-pointer type 'unsigned int' from NULL [-Wconversion-null] toph--; h[1][toph]=NULL;h[2][toph]=NULL; ^~~~ main.cpp:28:40: warning: converting to non-pointer type 'unsigned int' from NULL [-Wconversion-null] toph--; h[1][toph]=NULL;h[2][toph]=NULL; ^~~~ main.cpp: In function 'int main()': main.cpp:59:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(h[1][c]) {if(h[1][c]<z) z=h[1][c];c++;} ~~~~~~~^~ main.cpp: In function 'void push(int)': main.cpp:11:19: warning: array subscript is above array bounds [-Warray-bounds] h[1][k]=x; h[2][k]=k; ~~~^ main.cpp:14:38: warning: array subscript is above array bounds [-Warray-bounds] a=h[1][k/2]; b=h[2][k/2]; ~~~^ main.cpp:15:46: warning: array subscript is above array bounds [-Warray-bounds] h[1][k/2]=h[1][k]; h[2][k/2]=h[2][k]; ~~~^ main.cpp:15:36: warning: array subscript is above array bounds [-Warray-bounds] h[1][k/2]=h[1][k]; h[2][k/2]=h[2][k]; ~~~^ main.cpp:16:36: warning: array subscript is above array bounds [-Warray-bounds] h[1][k]=a; h[2][k]=b; ~~~^ main.cpp: In function 'void pop(int)': main.cpp:24:19: warning: array subscript is above array bounds [-Warray-bounds] int a,b; b=h[2][x]; ~~~^ main.cpp:25:15: warning: array subscript is above array bounds [-Warray-bounds] while (h[2][b]!=x) b=h[2][h[2][b]]; ~~~^ main.cpp:25:29: warning: array subscript is above array bounds [-Warray-bounds] while (h[2][b]!=x) b=h[2][h[2][b]]; ~~~^ main.cpp:27:16: warning: array subscript is above array bounds [-Warray-bounds] h[2][b]=h[2][toph-1]; ~~~^ main.cpp:27:8: warning: array subscript is above array bounds [-Warray-bounds] h[2][b]=h[2][toph-1]; ~~~^ main.cpp:28:32: warning: array subscript is above array bounds [-Warray-bounds] toph--; h[1][toph]=NULL;h[2][toph]=NULL; ~~~^ main.cpp:33:60: warning: array subscript is above array bounds [-Warray-bounds]
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbIncorect00
2252ms131kbTime limit exceeded00
3251ms131kbTime limit exceeded00
4252ms131kbTime limit exceeded00
5253ms131kbTime limit exceeded00
65ms131kbKilled by Signal 110
77ms131kbKilled by Signal 110
87ms131kbKilled by Signal 110
96ms131kbKilled by Signal 110
107ms131kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?