jwsept   1년 전

Main.cpp:(.text+0x1f): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccOwOEgw.o
Main.cpp:(.text+0x3b): relocation truncated to fit: R_X86_64_PC32 against symbol `m' defined in .bss section in /tmp/ccOwOEgw.o
Main.cpp:(.text+0x50): relocation truncated to fit: R_X86_64_PC32 against symbol `k' defined in .bss section in /tmp/ccOwOEgw.o
Main.cpp:(.text+0x65): relocation truncated to fit: R_X86_64_PC32 against symbol `x' defined in .bss section in /tmp/ccOwOEgw.o
Main.cpp:(.text+0x178): relocation truncated to fit: R_X86_64_PC32 against symbol `m' defined in .bss section in /tmp/ccOwOEgw.o
Main.cpp:(.text+0x183): relocation truncated to fit: R_X86_64_PC32 against symbol `x' defined in .bss section in /tmp/ccOwOEgw.o
Main.cpp:(.text+0x1ad): relocation truncated to fit: R_X86_64_PC32 against symbol `x' defined in .bss section in /tmp/ccOwOEgw.o
Main.cpp:(.text+0x341): relocation truncated to fit: R_X86_64_PC32 against symbol `k' defined in .bss section in /tmp/ccOwOEgw.o
Main.cpp:(.text+0x36d): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccOwOEgw.o
collect2: error: ld returned 1 exit status

srand   1년 전

배열 크기가... 어마어마 하네요

300기가 넘게 쓰시는데......

문제를 안풀어봐서 정확하진 않지만.

1. 배열을 줄이세요.. 

vector<int> array [ 300 001 ] 이정도로 넣고 필요한것만 쓰시면 되지 않을까.. 싶은데요

아니면 unordered_map< int , vector<int>> array 로 하시거나...

2. for loop 300001^2 돌리면 시간초과나요

댓글을 작성하려면 로그인해야 합니다.