QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#835256#969. Discrete Logarithm is a JokeZhaoZiLongCompile Error//C++17364b2024-12-28 10:48:452024-12-28 10:48:46

详细

answer.code: In function ‘int main()’:
answer.code:11:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
   11 |         scanf("%d",&n);
      |                ~^  ~~
      |                 |  |
      |                 |  long long int*
      |                 int*
      |                %lld
answer.code:11:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
/tmp/ccJ4IWf3.o: in function `main':
answer.code:(.text.startup+0x8): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccJ4IWf3.o
answer.code:(.text.startup+0x69): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccJ4IWf3.o
collect2: error: ld returned 1 exit status