Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:21: warning: left operand of comma operator has no effect [-Wunused-value]
   10 |                 mx=(mx,x);
      |                     ^~
/tmp/ccAkVZZV.o: in function `main':
foo.cc:(.text.startup+0x5): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccAkVZZV.o
foo.cc:(.text.startup+0x22): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccAkVZZV.o
foo.cc:(.text.startup+0x74): relocation truncated to fit: R_X86_64_PC32 against symbol `n' defined in .bss section in /tmp/ccAkVZZV.o
/tmp/ccAkVZZV.o: in function `_GLOBAL__sub_I_n':
foo.cc:(.text.startup+0x114): relocation truncated to fit: R_X86_64_PC32 against `.bss'
collect2: error: ld returned 1 exit status

信息

递交者
类型
递交
题目
P2629 做题4级2 2024.3
语言
C++
递交时间
2026-07-24 13:37:01
评测时间
2026-07-24 13:37:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes