Borderou de evaluare (job #3154135)
Utilizator | Data | 3 octombrie 2023 13:07:48 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:51:9: warning: iteration 100001 invokes undefined behavior [-Waggressive-loop-optimizations]
51 | d[i]=-1;
| ~~~~^~~
main.cpp:50:18: note: within this loop
50 | for(int i=0;i<=NMAX+1;i++)
| ~^~~~~~~~
main.cpp:51:9: warning: 'void* __builtin_memset(void*, int, long unsigned int)' forming offset [400004, 400007] is out of the bounds [0, 400004] of object 'd' with type 'int [100001]' [-Warray-bounds]
51 | d[i]=-1;
| ~~~~^~~
main.cpp:10:5: note: 'd' declared here
10 | int d[NMAX+1];
| ^
./ccnileAX.o: in function `bfs(int)':
main.cpp:(.text+0x659): relocation truncated to fit: R_X86_64_PC32 against symbol `d' defined in .bss section in ./ccnileAX.o
./ccnileAX.o: in function `main':
main.cpp:(.text.startup+0x5): relocation truncated to fit: R_X86_64_PC32 against symbol `d' defined in .bss section in ./ccnileAX.o
main.cpp:(.text.startup+0x1f): relocation truncated to fit: R_X86_64_PC32 against symbol `fin' defined in .bss section in ./ccnileAX.o
main.cpp:(.text.startup+0x16d): relocation truncated to fit: R_X86_64_PC32 against symbol `g' defined in .bss section in ./ccnileAX.o
./ccnileAX.o: in function `_GLOBAL__sub_I_f':
main.cpp:(.text.startup+0x365): relocation truncated to fit: R_X86_64_PC32 against symbol `fin' defined in .bss section in ./ccnileAX.o
main.cpp:(.text.startup+0x36d): relocation truncated to fit: R_X86_64_PC32 against `.bss'
main.cpp:(.text.startup+0x391): relocation truncated to fit: R_X86_64_PC32 against symbol `f' defined in .bss section in ./ccnileAX.o
main.cpp:(.text.startup+0x3e8): relocation truncated to fit: R_X86_64_PC32 against symbol `g' defined in .bss section in ./ccnileAX.o
/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../lib/libstdc++.a(vterminate.o): in function `__gnu_cxx::__verbose_terminate_handler()':
(.text._ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x1e): relocation truncated to fit: R_X86_64_PC32 against `.bss._ZZN9__gnu_cxx27__verbose_terminate_handlerEvE11terminating'
(.text._ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x2b): relocation truncated to fit: R_X86_64_PC32 against `.bss._ZZN9__gnu_cxx27__verbose_terminate_handlerEvE11terminating'
/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.1/../../../../lib/libstdc++.a(ios_init.o): in function `std::ios_base::Init::Init()':
(.text._ZNSt8ios_base4InitC2Ev+0x1c): failed to convert GOTPCREL relocation against '_ZNSt8ios_base4Init11_S_refcountE'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x57): additional relocation overflows omitted from the output
(.text._ZNSt8ios_base4InitC2Ev+0x1e8): failed to convert GOTPCREL relocation against '_ZSt4cout'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x250): failed to convert GOTPCREL relocation against '_ZSt3cin'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x2c3): failed to convert GOTPCREL relocation against '_ZSt4cerr'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x319): failed to convert GOTPCREL relocation against '_ZSt4clog'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x513): failed to convert GOTPCREL relocation against '_ZSt5wcout'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x584): failed to convert GOTPCREL relocation against '_ZSt4wcin'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x601): failed to convert GOTPCREL relocation against '_ZSt5wcerr'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x65f): failed to convert GOTPCREL relocation against '_ZSt5wclog'; relink with --no-relax
collect2: error: ld returned 1 exit status
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !