Borderou de evaluare (job #3346877)

Utilizator Horia_haivasHaivas Horia Horia_haivas Data 15 martie 2026 12:56:03
Problema Ghiozdan Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 90

Raport evaluator

Compilare: main.cpp: In function 'bool can_find(int, int)': main.cpp:38:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<adono>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 38 | if (r+pas<cate[obj].size() && cate[obj][r+pas].weight<=w) | ~~~~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'int get_idx(int, int)': main.cpp:57:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<adono>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 57 | if (r+pas<cate[obj].size() && cate[obj][r+pas].weight<=w) | ~~~~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:100:54: warning: narrowing conversion of '((w - dq[mod].std::deque<int>::front()) / i)' from 'int' to 'short int' [-Wnarrowing] 100 | cate[i].push_back({((w-dq[mod].front())/i),w}); | ~~~~~~~~~~~~~~~~~~~~^~~ In function 'int get_idx(int, int)', inlined from 'int main()' at main.cpp:118:26: main.cpp:57:36: warning: 'bigw' may be used uninitialized [-Wmaybe-uninitialized] 57 | if (r+pas<cate[obj].size() && cate[obj][r+pas].weight<=w) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:73:23: note: 'bigw' was declared here 73 | int n,g,i,j,mod,w,bigw,nush; | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms557kbOK10
20ms557kbOK10
317ms1490kbOK10
467ms6569kbOK10
573ms4743kbOK10
619ms2146kbOK10
758ms1744kbOK10
882ms2134kbOK10
993ms2211kbOK10
1055ms20889kbMemory limit exceeded0
Punctaj total90

Ceva nu functioneaza?