QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#835318#3230. Beautiful NowGuanYunchangCompile Error//C++171.5kb2024-12-28 11:13:552024-12-28 11:13:56

详细

answer.code: In function ‘int main()’:
answer.code:10:18: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
   10 |         scanf("%ld",&T);
      |                ~~^  ~~
      |                  |  |
      |                  |  long long int*
      |                  long int*
      |                %lld
answer.code:13:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘std::string*’ {aka ‘std::__cxx11::basic_string<char>*’} [-Wformat=]
   13 |                 scanf("%s%ld",&n,&k);
      |                        ~^     ~~
      |                         |     |
      |                         char* std::string* {aka std::__cxx11::basic_string<char>*}
answer.code:13:28: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
   13 |                 scanf("%s%ld",&n,&k);
      |                          ~~^     ~~
      |                            |     |
      |                            |     long long int*
      |                            long int*
      |                          %lld
answer.code:25:43: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
   25 |                                 printf("%ld",d[i]);
      |                                         ~~^  ~~~~
      |                                           |     |
      |                                           |     long long int
      |                                           long int
      |                                         %lld
answer.code:29:43: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
   29 |                                 printf("%ld",c[i]);
      |                                         ~~^  ~~~~
      |                                           |     |
      |                                           |     long long int
      |                                           long int
      |                                         %lld
answer.code:70:43: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
   70 |                                 printf("%ld",b[i]);
      |                                         ~~^  ~~~~
      |                                           |     |
      |                                           |     long long int
      |                                           long int
      |                                         %lld
answer.code:74:43: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
   74 |                                 printf("%ld",a[i]);
      |                                         ~~^  ~~~~
      |                                           |     |
      |                                           |     long long int
      |                                           long int
      |                                         %lld
answer.code:10:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |         scanf("%ld",&T);
      |         ~~~~~^~~~~~~~~~
answer.code:13:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   13 |                 scanf("%s%ld",&n,&k);
      |                 ~~~~~^~~~~~~~~~~~~~~
/tmp/ccdT97yC.o: in function `main':
answer.code:(.text.startup+0xb): relocation truncated to fit: R_X86_64_PC32 against symbol `T' defined in .bss section in /tmp/ccdT97yC.o
answer.code:(.text.startup+0x2f): relocation truncated to fit: R_X86_64_PC32 against symbol `T' defined in .bss section in /tmp/ccdT97yC.o
answer.code:(.text.startup+0x53): relocation truncated to fit: R_X86_64_PC32 against symbol `k' defined in .bss section in /tmp/ccdT97yC.o
answer.code:(.text.startup+0x5a): relocation truncated to fit: R_X86_64_PC32 against symbol `n[abi:cxx11]' defined in .bss section in /tmp/ccdT97yC.o
answer.code:(.text.startup+0x6f): relocation truncated to fit: R_X86_64_PC32 against symbol `n[abi:cxx11]' defined in .bss section in /tmp/ccdT97yC.o
answer.code:(.text.startup+0x81): relocation truncated to fit: R_X86_64_PC32 against symbol `n[abi:cxx11]' defined in .bss section in /tmp/ccdT97yC.o
answer.code:(.text.startup+0x8e): relocation truncated to fit: R_X86_64_PC32 against symbol `a' defined in .bss section in /tmp/ccdT97yC.o
answer.code:(.text.startup+0x97): relocation truncated to fit: R_X86_64_PC32 against symbol `b' defined in .bss section in /tmp/ccdT97yC.o
answer.code:(.text.startup+0x9e): relocation truncated to fit: R_X86_64_PC32 against symbol `c' defined in .bss section in /tmp/ccdT97yC.o
answer.code:(.text.startup+0x19c): relocation truncated to fit: R_X86_64_PC32 against symbol `k' defined in .bss section...