Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
16 Octombrie 2024, 09:46 |
c++14 |
E.C. |
main.cpp: In function ‘i64 sumDiv(int)’:
main.cpp:145:21: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<long int, std::allocator<long int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
145 | for (int i = 0; i < p.size() && p[i] * p[i] <= N; i++) {
| ~~^~~~~~~~~~
./cckRiHli.o: in function `sumDiv(int)':
main.cpp:(.text+0x13): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in ./cckRiHli.o
main.cpp:(.text+0x1b): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in ./cckRiHli.o
./cckRiHli.o: in function `sieve(int)':
main.cpp:(.text+0xc7): relocation truncated to fit: R_X86_64_PC32 against symbol `bs' defined in .bss section in ./cckRiHli.o
main.cpp:(.text+0xf5): relocation truncated to fit: R_X86_64_PC32 against symbol `bs' defined in .bss section in ./cckRiHli.o
main.cpp:(.text+0x100): relocation truncated to fit: R_X86_64_PC32 against symbol `bs' defined in .bss section in ./cckRiHli.o
main.cpp:(.text+0x123): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in ./cckRiHli.o
main.cpp:(.text+0x190): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in ./cckRiHli.o
main.cpp:(.text+0x197): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in ./cckRiHli.o
main.cpp:(.text+0x1a7): relocation truncated to fit: R_X86_64_PC32 against symbol `p' defined in .bss section in ./cckRiHli.o
./cckRiHli.o: in function `main':
main.cpp:(.text.startup+0x12): relocation truncated to fit: R_X86_64_PC32 against symbol `std::cin' defined in .bss._ZSt3cin section in /usr/lib/gcc/x86_64-linux-gnu/11/libstdc++.a(globals_io.o)
main.cpp:(.text.startup+0x1d): additional relocation overflows omitted from the output
/usr/lib/gcc/x86_64-linux-gnu/11/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+0x1c6): failed to convert GOTPCREL relocation against '_ZSt4cout'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x260): failed to convert GOTPCREL relocation against '_ZSt3cin'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x2e2): failed to convert GOTPCREL relocation against '_ZSt4cerr'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x353): failed to convert GOTPCREL relocation against '_ZSt4clog'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x541): failed to convert GOTPCREL relocation against '_ZSt5wcout'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x5e5): failed to convert GOTPCREL relocation against '_ZSt4wcin'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x670): failed to convert GOTPCREL relocation against '_ZSt5wcerr'; relink with --no-relax
(.text._ZNSt8ios_base4InitC2Ev+0x6e9): failed to convert GOTPCREL relocation against '_ZSt5wclog'; relink with --no-relax
collect2: error: ld returned 1 exit status