museum.cpp: In function 'int main()':
museum.cpp:95:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
95 | freopen((NAME+".inp").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
museum.cpp:96:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
96 | freopen((NAME+".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/ccyn4xPY.o: in function `__tcf_0':
museum.cpp:(.text+0x9): relocation truncated to fit: R_X86_64_PC32 against symbol `adj' defined in .bss section in /tmp/ccyn4xPY.o
/tmp/ccyn4xPY.o: in function `dfs(long long, long long)':
museum.cpp:(.text+0x9e): relocation truncated to fit: R_X86_64_PC32 against symbol `adj' defined in .bss section in /tmp/ccyn4xPY.o
museum.cpp:(.text+0x10a): relocation truncated to fit: R_X86_64_PC32 against symbol `K' defined in .bss section in /tmp/ccyn4xPY.o
/tmp/ccyn4xPY.o: in function `SOLVE()':
museum.cpp:(.text+0x21b): relocation truncated to fit: R_X86_64_PC32 against symbol `N' defined in .bss section in /tmp/ccyn4xPY.o
museum.cpp:(.text+0x288): relocation truncated to fit: R_X86_64_PC32 against symbol `X' defined in .bss section in /tmp/ccyn4xPY.o
museum.cpp:(.text+0x2a2): relocation truncated to fit: R_X86_64_PC32 against symbol `std::cout' defined in .bss._ZSt4cout section in /usr/lib/gcc/x86_64-linux-gnu/11/libstdc++.a(globals_io.o)
museum.cpp:(.text+0x2a9): relocation truncated to fit: R_X86_64_PC32 against symbol `X' defined in .bss section in /tmp/ccyn4xPY.o
museum.cpp:(.text+0x2b4): relocation truncated to fit: R_X86_64_PC32 against symbol `K' defined in .bss section in /tmp/ccyn4xPY.o
/tmp/ccyn4xPY.o: in function `Rand(long long, long long)':
museum.cpp:(.text+0x2f4): relocation truncated to fit: R_X86_64_PC32 against symbol `rd' defined in .bss section in /tmp/ccyn4xPY.o
museum.cpp:(.text+0x301): relocation truncated to fit: R_X86_64_PC32 against symbol `rd' defined in .bss section in /tmp/ccyn4xPY.o
museum.cpp:(.text+0x325): 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
/usr/bin/ld: final link failed
collect2: error: ld returned 1 exit status