QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#835435#969. Discrete Logarithm is a JokeMaMengQiCompile Error//C++14364b2024-12-28 11:51:472024-12-28 11:51:49

詳細信息

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/ccVpdreY.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/ccVpdreY.o
answer.code:(.text.startup+0x69): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccVpdreY.o
collect2: error: ld returned 1 exit status