Borderou de evaluare (job #1143248)

Utilizator smaraldaSmaranda Dinu smaralda Data 15 martie 2014 01:26:39
Problema Split Status done
Runda oni2013_z1 Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘int split(int, int, int&, int&, int&, int&, int&)’: user.cpp:31:60: warning: unused variable ‘j’ [-Wunused-variable] int smax, auxleft1, auxright1, auxleft2, auxright2, i, j; ^ user.cpp: In function ‘int main()’: user.cpp:59:29: warning: unused variable ‘min1’ [-Wunused-variable] int n, k, s, j, i, add, min1, si, sj, sk, max1, resi, x, y, z, w, resj, resk, left1, smax, left2, right1, right2, pos, init; ^ user.cpp:59:47: warning: unused variable ‘max1’ [-Wunused-variable] int n, k, s, j, i, add, min1, si, sj, sk, max1, resi, x, y, z, w, resj, resk, left1, smax, left2, right1, right2, pos, init; ^ user.cpp: In function ‘int split(int, int, int&, int&, int&, int&, int&)’: user.cpp:41:23: warning: ‘auxright2’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(a[auxright2] + a[auxright1] - a[auxleft2] - a[auxleft1] > smax) ^ user.cpp:41:52: warning: ‘auxleft2’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(a[auxright2] + a[auxright1] - a[auxleft2] - a[auxleft1] > smax) ^ user.cpp:41:38: warning: ‘auxright1’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(a[auxright2] + a[auxright1] - a[auxleft2] - a[auxleft1] > smax) ^ user.cpp:41:66: warning: ‘auxleft1’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(a[auxright2] + a[auxright1] - a[auxleft2] - a[auxleft1] > smax) ^ user.cpp: In function ‘int main()’: user.cpp:59:77: warning: ‘resk’ may be used uninitialized in this function [-Wmaybe-uninitialized] int n, k, s, j, i, add, min1, si, sj, sk, max1, resi, x, y, z, w, resj, resk, left1, smax, left2, right1, right2, pos, init; ^ user.cpp:59:71: warning: ‘resj’ may be used uninitialized in this function [-Wmaybe-uninitialized] int n, k, s, j, i, add, min1, si, sj, sk, max1, resi, x, y, z, w, resj, resk, left1, smax, left2, right1, right2, pos, init; ^ user.cpp:115:5: warning: ‘resi’ may be used uninitialized in this function [-Wmaybe-uninitialized] for(i = 2; i <= resi; ++ i) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms236kbIncorect0
20ms236kbOK10
34ms232kbOK10
44ms232kbOK10
54ms232kbOK10
660ms232kbOK10
7108ms232kbOK10
8160ms232kbIncorect0
9136ms232kbOK10
10148ms232kbOK10
Punctaj total80

Ceva nu functioneaza?