QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#411793#6748. Spin the WheelZhangYiDeCompile Error//C++201.9kb2024-05-15 19:36:592024-05-15 19:36:59

Details

answer.code: In function ‘int main()’:
answer.code:83:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   83 |     scanf("%d", &n);
      |     ~~~~~^~~~~~~~~~
answer.code:85:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   85 |         scanf("%d", &target[i]);
      |         ~~~~~^~~~~~~~~~~~~~~~~~
/tmp/ccvJwRFV.o: in function `are_equal(int*, int*)':
answer.code:(.text+0x7): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccvJwRFV.o
/tmp/ccvJwRFV.o: in function `increment(State*)':
answer.code:(.text+0x46): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccvJwRFV.o
/tmp/ccvJwRFV.o: in function `spin(State*)':
answer.code:(.text+0x7f): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccvJwRFV.o
/tmp/ccvJwRFV.o: in function `bfs()':
answer.code:(.text+0x10c): relocation truncated to fit: R_X86_64_PC32 against symbol `target' defined in .bss section in /tmp/ccvJwRFV.o
answer.code:(.text+0x179): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccvJwRFV.o
answer.code:(.text+0x18c): relocation truncated to fit: R_X86_64_PC32 against symbol `visited' defined in .bss section in /tmp/ccvJwRFV.o
answer.code:(.text+0x288): relocation truncated to fit: R_X86_64_PC32 against symbol `visited' defined in .bss section in /tmp/ccvJwRFV.o
answer.code:(.text+0x333): relocation truncated to fit: R_X86_64_PC32 against symbol `visited' defined in .bss section in /tmp/ccvJwRFV.o
answer.code:(.text+0x344): relocation truncated to fit: R_X86_64_PC32 against symbol `visited' defined in .bss section in /tmp/ccvJwRFV.o
/tmp/ccvJwRFV.o: in function `main':
answer.code:(.text.startup+0x10): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccvJwRFV.o
answer.code:(.text.startup+0x22): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status