Q.cpp: In function ‘int main()’:
Q.cpp:33:7: warning: unused variable ‘flag’ [-Wunused-variable]
bool flag = false;
^
Q.cpp:31:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &K);
^
/tmp/ccrzXkDV.o: In function `main':
Q.cpp:(.text.startup+0x5): relocation truncated to fit: R_X86_64_32 against symbol `K' defined in .bss section in /tmp/ccrzXkDV.o
Q.cpp:(.text.startup+0xe): relocation truncated to fit: R_X86_64_32 against symbol `N' defined in .bss section in /tmp/ccrzXkDV.o
Q.cpp:(.text.startup+0x26): relocation truncated to fit: R_X86_64_PC32 against symbol `N' defined in .bss section in /tmp/ccrzXkDV.o
Q.cpp:(.text.startup+0x2c): relocation truncated to fit: R_X86_64_PC32 against symbol `K' defined in .bss section in /tmp/ccrzXkDV.o
/tmp/ccrzXkDV.o: In function `_GLOBAL__sub_I_N':
Q.cpp:(.text.startup+0x155): relocation truncated to fit: R_X86_64_32 against `.bss'
Q.cpp:(.text.startup+0x164): relocation truncated to fit: R_X86_64_32 against `.bss'
Q.cpp:(.text.startup+0x17e): relocation truncated to fit: R_X86_64_PC32 against `.bss'
/usr/lib/gcc/x86_64-linux-gnu/4.9/libstdc++.a(ios_init.o): In function `std::ios_base::Init::Init()':
(.text._ZNSt8ios_base4InitC2Ev+0x19): relocation truncated to fit: R_X86_64_PC32 against symbol `std::ios_base::Init::_S_refcount' defined in .bss._ZNSt8ios_base4Init11_S_refcountE section in /usr/lib/gcc/x86_64-linux-gnu/4.9/libstdc++.a(ios.o)
/usr/lib/gcc/x86_64-linux-gnu/4.9/libstdc++.a(ios_init.o): In function `std::ios_base::Init::Init()':
(.text._ZNSt8ios_base4InitC2Ev+0x4a): relocation truncated to fit: R_X86_64_PC32 against symbol `__gnu_internal::buf_cout_sync' defined in .bss._ZN14__gnu_internal13buf_cout_syncE section in /usr/lib/gcc/x86_64-linux-gnu/4.9/libstdc++.a(globals_io.o)
/usr/lib/gcc/x86_64-linux-gnu/4.9/libstdc++.a(ios_init.o): In function `std::ios_base::Init::Init()':
(.text._ZNSt8ios_base4InitC2Ev+0x51): relocation truncated to fit: R_X86_64_PC32 against symbol `__gnu_internal::buf_cout_sync' defined in .bss._ZN14__gnu_internal13buf_cout_syncE section in /usr/lib/gcc/x86_64-linux-gnu/4.9/libstdc++.a(globals_io.o)
/usr/lib/gcc/x86_64-linux-gnu/4.9/libstdc++.a(ios_init.o): In function `std::ios_base::Init::Init()':
(.text._ZNSt8ios_base4InitC2Ev+0x5c): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status