foo.cc: In function 'int main()':
foo.cc:21:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
21 | scanf("%d",&k);
| ~~~~~^~~~~~~~~
/tmp/ccr1kMYT.o: in function `main':
foo.cc:(.text.startup+0x68): relocation truncated to fit: R_X86_64_PC32 against symbol `store' defined in .bss section in /tmp/ccr1kMYT.o
/tmp/ccr1kMYT.o: in function `_GLOBAL__sub_I_store':
foo.cc:(.text.startup+0xcb): relocation truncated to fit: R_X86_64_PC32 against `.bss'
foo.cc:(.text.startup+0xe9): relocation truncated to fit: R_X86_64_PC32 against `.bss'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务