Borderou de evaluare (job #2794711)

Utilizator schizofrenieShallan Davar schizofrenie Data 5 noiembrie 2021 12:20:12
Problema Diametrul unui arbore Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int bfs(int)': main.cpp:22:5: warning: 'if constexpr' only available with '-std=c++17' or '-std=gnu++17' 22 | if constexpr (second_pass) | ^~~~~~~~~ main.cpp:43:5: warning: 'if constexpr' only available with '-std=c++17' or '-std=gnu++17' 43 | if constexpr (second_pass) | ^~~~~~~~~ main.cpp: In instantiation of 'int bfs(int) [with bool second_pass = false]': main.cpp:71:15: required from here main.cpp:36:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 36 | for (auto j = 0; j != muchii[now].size(); ++ j) | ~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:32:7: warning: unused variable 'j' [-Wunused-variable] 32 | int j; | ^ main.cpp: In instantiation of 'int bfs(int) [with bool second_pass = true]': main.cpp:73:32: required from here main.cpp:36:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 36 | for (auto j = 0; j != muchii[now].size(); ++ j) | ~~^~~~~~~~~~~~~~~~~~~~~ main.cpp:32:7: warning: unused variable 'j' [-Wunused-variable] 32 | int j; | ^ main.cpp: In function 'int bfs(int) [with bool second_pass = true]': main.cpp:44:16: warning: 'now' may be used uninitialized in this function [-Wmaybe-uninitialized] 44 | return depth[now]; | ^~~ main.cpp: In function 'int bfs(int) [with bool second_pass = false]': main.cpp:46:10: warning: 'now' may be used uninitialized in this function [-Wmaybe-uninitialized] 46 | return now; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbOK10
215ms2662kbOK10
37ms2654kbOK10
44ms2605kbOK10
514ms3051kbOK10
640ms4124kbOK10
773ms4841kbOK10
8124ms5869kbOK10
9145ms6311kbOK10
10163ms6967kbOK10
Punctaj total100

Ceva nu functioneaza?