Borderou de evaluare (job #2821940)

Utilizator oporanu.alexAlex Oporanu oporanu.alex Data 23 decembrie 2021 13:00:55
Problema Ciclu hamiltonian de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:23: warning: suggest parentheses around '+' inside '<<' [-Wparentheses] 6 | int minCost[1 << nmax + 5][nmax], costMatrix[nmax][nmax]; | ~~~~~^~~ main.cpp: In member function 'std::pair<std::vector<Edge>, int> Graph::MSTKruskall()': main.cpp:427:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 427 | for(int j = 0; j < adj[i].size(); ++j) { | ~~^~~~~~~~~~~~~~~ main.cpp:441:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 441 | for(int i = 0; i < edges.size() && cnt <= E - 1; ++i) { | ~~^~~~~~~~~~~~~~ ./ccsb4Nah.o: in function `_GLOBAL__sub_I_minCost': main.cpp:(.text.startup+0x2a7): relocation truncated to fit: R_X86_64_PC32 against `.bss' main.cpp:(.text.startup+0x2c5): relocation truncated to fit: R_X86_64_PC32 against `.bss' /usr/lib/gcc/x86_64-linux-gnu/10/libstdc++.a(vterminate.o): in function `__gnu_cxx::__verbose_terminate_handler()': (.text._ZN9__gnu_cxx27__verbose_terminate_handlerEv+0xa): relocation truncated to fit: R_X86_64_PC32 against `.bss._ZZN9__gnu_cxx27__verbose_terminate_handlerEvE11terminating' (.text._ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x17): relocation truncated to fit: R_X86_64_PC32 against `.bss._ZZN9__gnu_cxx27__verbose_terminate_handlerEvE11terminating' /usr/bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax collect2: error: ld returned 1 exit status Non zero exit status: 1

Ceva nu functioneaza?