Borderou de evaluare (job #3258403)

Utilizator Cyb3rBoltSbora Ioan-David Cyb3rBolt Data 22 noiembrie 2024 12:27:56
Problema Orase1 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: In function 'int check(int)', inlined from 'int main()' at main.cpp:37:31: main.cpp:25:12: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 25 | st = cautBin(dr, n, x) + 1; | ~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:9:19: note: 'poz' was declared here 9 | int ind = st, poz; | ^~~ In function 'int cautBin(int, int, int)', inlined from 'int check(int)' at main.cpp:25:21, inlined from 'int main()' at main.cpp:37:31: main.cpp:12:28: warning: 'poz' may be used uninitialized [-Wmaybe-uninitialized] 12 | if(sp[mid] - sp[ind] <= x) st = mid + 1, poz = mid; | ~~~~~~^ main.cpp: In function 'int main()': main.cpp:9:19: note: 'poz' was declared here 9 | int ind = st, poz; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbOK1010
20ms303kbOK1010
34ms1081kbOK1010
48ms1867kbOK1010
514ms4489kbOK1010
618ms5677kbOK1010
719ms5935kbOK1030
824ms7368kbOK10
929ms8183kbOK10
100ms303kbOK1010
Punctaj total100

Ceva nu functioneaza?