Borderou de evaluare (job #2802549)

Utilizator faalaviaFlavia Podariu faalavia Data 18 noiembrie 2021 12:48:00
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'bool UndirectedGraph::havelHakimi(std::vector<int>)': main.cpp:310:23: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 310 | if(degrees[0] > degrees.size() - loops) main.cpp: In member function 'std::vector<int> DirectedGraph::topologicalSorting()': main.cpp:418:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<bool>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 418 | for(int node = 1; node < visited.size(); ++node) | ~~~~~^~~~~~~~~~~~~~~~ main.cpp: In function 'void BCC_INFO_ARENA()': main.cpp:515:11: error: 'rlim_t' does not name a type 515 | const rlim_t new_stackSize = 20000000; | ^~~~~~ main.cpp:516:19: error: aggregate 'BCC_INFO_ARENA()::rlimit limit' has incomplete type and cannot be defined 516 | struct rlimit limit; | ^~~~~ main.cpp:517:15: error: 'RLIMIT_STACK' was not declared in this scope 517 | getrlimit(RLIMIT_STACK, &limit); | ^~~~~~~~~~~~ main.cpp:517:5: error: 'getrlimit' was not declared in this scope; did you mean 'rlimit'? 517 | getrlimit(RLIMIT_STACK, &limit); | ^~~~~~~~~ | rlimit main.cpp:518:22: error: 'new_stackSize' was not declared in this scope 518 | limit.rlim_cur = new_stackSize; | ^~~~~~~~~~~~~ main.cpp:519:5: error: 'setrlimit' was not declared in this scope; did you mean 'rlimit'? 519 | setrlimit(RLIMIT_STACK, &limit); | ^~~~~~~~~ | rlimit Non zero exit status: 1

Ceva nu functioneaza?