/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(unsigned long long i=1;i<1<<m;i++)bits[i]=bits[i>>1]+i%2;
                             ~^~~~~
/in/foo.cc:15:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(unsigned long long k=0;k<(1<<m);k++)
                             ~^~~~~~~
/in/foo.cc:16:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(unsigned long long j=0;j<(1<<m);j++){
                             ~^~~~~~~
/in/foo.cc:22:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(unsigned long long i=0;i<1<<m;i++)if(!(i&(i>>1)))ans+=f[n][i][o];
                             ~^~~~~
/tmp/ccmRUXdY.o: In function `main':
foo.cc:(.text.startup+0x7): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccmRUXdY.o
foo.cc:(.text.startup+0x24): relocation truncated to fit: R_X86_64_PC32 against symbol `m' defined in .bss section in /tmp/ccmRUXdY.o
foo.cc:(.text.startup+0x33): relocation truncated to fit: R_X86_64_PC32 against symbol `o' defined in .bss section in /tmp/ccmRUXdY.o
foo.cc:(.text.startup+0x42): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccmRUXdY.o
foo.cc:(.text.startup+0x49): relocation truncated to fit: R_X86_64_PC32 against symbol `m' defined in .bss section in /tmp/ccmRUXdY.o
foo.cc:(.text.startup+0x6e): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccmRUXdY.o
foo.cc:(.text.startup+0x79): relocation truncated to fit: R_X86_64_PC32 against symbol `m' defined in .bss section in /tmp/ccmRUXdY.o
foo.cc:(.text.startup+0xfe): relocation truncated to fit: R_X86_64_PC32 against symbol `bits' defined in .bss section in /tmp/ccmRUXdY.o
foo.cc:(.text.startup+0x147): relocation truncated to fit: R_X86_64_PC32 against symbol `o' defined in .bss section in /tmp/ccmRUXdY.o
foo.cc:(.text.startup+0x19e): relocation truncated to fit: R_X86_64_PC32 against symbol `bits' defined in .bss section in /tmp/ccmRUXdY.o
foo.cc:(.text.startup+0x234): additional relocation overflows omitted from the output
collect2: error: ld returned 1 exit status

信息

递交者
类型
递交
题目
P1286 座位安排
语言
C++
递交时间
2017-07-19 20:32:08
评测时间
2017-07-19 20:32:08
评测机
分数
0
总耗时
329ms
峰值内存
29.863 MiB