Borderou de evaluare (job #2779531)

Utilizator cadmium_Voicu Mihai Valeriu cadmium_ Data 4 octombrie 2021 09:33:36
Problema LCDR Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void rmq::construct()': main.cpp:28:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 28 | for(int i=0; i<ref.size(); i++) { | ~^~~~~~~~~~~ main.cpp:34:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 34 | for(int i=0; i+(1<<step)<=ref.size(); i++) { | ~~~~~~~~~~~^~~~~~~~~~~~ main.cpp:35:63: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] 35 | rmq[step][i]=max(rmq[step-1][i],rmq[step-1][i+(1<<step-1)]); | ~~~~^~ main.cpp: In function 'void rmq::init()': main.cpp:51:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 51 | for(int i=0; i<ref.size(); i++) { | ~^~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbOK5
25ms798kbOK5
310ms1474kbOK5
45ms962kbOK5
5217ms20361kbOK5
6212ms20463kbOK5
7181ms1126kbOK5
8296ms1040kbOK5
9327ms20246kbOK5
10338ms20262kbOK5
11598ms20590kbOK5
12607ms20578kbOK5
13517ms20746kbOK5
14515ms20742kbOK5
15960ms22274kbOK5
16784ms21442kbOK5
17968ms21381kbOK5
18782ms21430kbOK5
19971ms21463kbOK5
20961ms21422kbOK5
Punctaj total100

Ceva nu functioneaza?