Borderou de evaluare (job #2815407)

Utilizator oporanu.alexAlex Oporanu oporanu.alex Data 9 decembrie 2021 16:15:53
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool BFmaxFlow(int, int, int*, std::vector<int>*, int)': main.cpp:10:16: warning: iteration 100004 invokes undefined behavior [-Waggressive-loop-optimizations] 10 | vis[i] = false; | ~~~~~~~^~~~~~~ main.cpp:9:22: note: within this loop 9 | for(int i = 1; i <= nmax; ++i) | ~~^~~~~~~ main.cpp:10:16: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset 100005 is out of the bounds [0, 100005] of object 'vis' with type 'bool [100005]' [-Warray-bounds] 10 | vis[i] = false; | ~~~~~~~^~~~~~~ main.cpp:8:10: note: 'vis' declared here 8 | bool vis[nmax]; | ^~~ ./ccCrJYxg.o: in function `BFmaxFlow(int, int, int*, std::vector<int, std::allocator<int> >*, int)': main.cpp:(.text+0xf2): relocation truncated to fit: R_X86_64_PC32 against symbol `f' defined in .bss section in ./ccCrJYxg.o ./ccCrJYxg.o: in function `main': main.cpp:(.text.startup+0x1de): relocation truncated to fit: R_X86_64_PC32 against symbol `f' defined in .bss section in ./ccCrJYxg.o ./ccCrJYxg.o: in function `_GLOBAL__sub_I_f': main.cpp:(.text.startup+0x2f7): relocation truncated to fit: R_X86_64_PC32 against `.bss' main.cpp:(.text.startup+0x315): 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?