Borderou de evaluare (job #839235)

Utilizator avatar ultra980 Alex Stan ultra980 IP ascuns
Problemă Hashuri (clasa a 9-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 30 oct. 2025 11:54:22 Scor 40

Raport evaluator

Compilare: In member function 'void HashMap::remove(int)', inlined from 'int main()' at main.cpp:100:22: main.cpp:58:24: warning: 'prev' may be used uninitialized [-Wmaybe-uninitialized] 58 | next[prev] = next[i]; | ~~~~~~~~~~~^~~~~~~~~ main.cpp: In function 'int main()': main.cpp:44:39: note: 'prev' was declared here 44 | uint hsh = calc_hash(num), i, prev; | ^~~~ In member function 'void HashMap::add(int)', inlined from 'int main()' at main.cpp:97:19: main.cpp:39:24: warning: 'prev' may be used uninitialized [-Wmaybe-uninitialized] 39 | next[prev] = lastp; | ~~~~~~~~~~~^~~~~~~ main.cpp: In function 'int main()': main.cpp:22:39: note: 'prev' was declared here 22 | uint hsh = calc_hash(num), i, prev; | ^~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test Punctaj/grupă
1 1 ms 512 kb OK 10 10
2 1 ms 296 kb OK 10 10
3 1 ms 512 kb OK 10 10
4 20 ms 724 kb OK 10 0
5 24 ms 1024 kb Incorect 0
6 32 ms 1196 kb OK 10
7 81 ms 1464 kb OK 10 10
8 214 ms 3896 kb OK 10 0
9 depășit 6416 kb Time limit exceeded. 0
10 460 ms 5632 kb OK 10
Punctaj total 40