/ TYWZ /

记录详情

Compile Error

/in/foo.cc: In function 'int deal(int, int, int, int)':
/in/foo.cc:10:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0;mi>=dou[i];++i){
          ~~^~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:42:29: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'int' [-Wformat=]
  printf("%llu\n",f[n][money]);
                             ^
/tmp/ccus3pio.o: In function `deal(int, int, int, int)':
foo.cc:(.text+0x16): relocation truncated to fit: R_X86_64_PC32 against symbol `worth' defined in .bss section in /tmp/ccus3pio.o
foo.cc:(.text+0x1d): relocation truncated to fit: R_X86_64_PC32 against symbol `cost' defined in .bss section in /tmp/ccus3pio.o
foo.cc:(.text+0x6e): relocation truncated to fit: R_X86_64_PC32 against symbol `worth' defined in .bss section in /tmp/ccus3pio.o
foo.cc:(.text+0x77): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccus3pio.o
foo.cc:(.text+0x85): relocation truncated to fit: R_X86_64_PC32 against symbol `cost' defined in .bss section in /tmp/ccus3pio.o
/tmp/ccus3pio.o: In function `main':
foo.cc:(.text.startup+0x5f): relocation truncated to fit: R_X86_64_PC32 against symbol `money' defined in .bss section in /tmp/ccus3pio.o
foo.cc:(.text.startup+0x66): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccus3pio.o
foo.cc:(.text.startup+0x7a): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccus3pio.o
foo.cc:(.text.startup+0x81): relocation truncated to fit: R_X86_64_PC32 against symbol `money' defined in .bss section in /tmp/ccus3pio.o
foo.cc:(.text.startup+0x94): relocation truncated to fit: R_X86_64_PC32 against symbol `m' defined in .bss section in /tmp/ccus3pio.o
foo.cc:(.text.startup+0x9b): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status

信息

递交者
类型
递交
题目
Basic Knapsack II
语言
C++
递交时间
2019-02-09 19:01:06
评测时间
2019-02-09 19:01:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes