Borderou de evaluare (job #1154832)

Utilizator iarbaCrestez Paul iarba Data 26 martie 2014 13:46:25
Problema Heapuri Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp:3:11: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] int heap[1<<18+1],a[200001],ph[200001],caz,poz,t,n,i; ^ user.cpp: In function ‘int main()’: user.cpp:26:16: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&t);a[0]=-1;a[200001]=999999; ^ user.cpp:29:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&caz); ^ user.cpp:31:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&a[++n]); ^ user.cpp:36:20: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&poz); ^ user.cpp:40:29: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld\n",a[heap[1]]); ^ user.cpp:26:34: warning: array subscript is above array bounds [-Warray-bounds] scanf("%ld",&t);a[0]=-1;a[200001]=999999; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms1008kbOK1010
24ms1008kbIncorect00
34ms1008kbOK1010
48ms1048kbIncorect00
532ms1180kbIncorect00
660ms1336kbIncorect0
7132ms1792kbIncorect0
8104ms1632kbOK10
9124ms1660kbIncorect0
10120ms1664kbIncorect0
Punctaj total20

Ceva nu functioneaza?