记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:12:18: warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses]
   12 |         else if(e==s==1) cout<<"1";
      |                 ~^~~
/tmp/ccrYCv8N.o: in function `main':
foo.cc:(.text.startup+0x5): relocation truncated to fit: R_X86_64_32 against symbol `s' defined in .bss section in /tmp/ccrYCv8N.o
foo.cc:(.text.startup+0x14): relocation truncated to fit: R_X86_64_32 against symbol `e' defined in .bss section in /tmp/ccrYCv8N.o
foo.cc:(.text.startup+0x23): relocation truncated to fit: R_X86_64_PC32 against symbol `e' defined in .bss section in /tmp/ccrYCv8N.o
foo.cc:(.text.startup+0x34): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccrYCv8N.o
foo.cc:(.text.startup+0x59): relocation truncated to fit: R_X86_64_PC32 against symbol `ans' defined in .bss section in /tmp/ccrYCv8N.o
foo.cc:(.text.startup+0x93): relocation truncated to fit: R_X86_64_32S against symbol `ans' defined in .bss section in /tmp/ccrYCv8N.o
foo.cc:(.text.startup+0xa8): relocation truncated to fit: R_X86_64_32S against symbol `ans' defined in .bss section in /tmp/ccrYCv8N.o
foo.cc:(.text.startup+0xb8): relocation truncated to fit: R_X86_64_32S against symbol `ans' defined in .bss section in /tmp/ccrYCv8N.o
foo.cc:(.text.startup+0xca): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccrYCv8N.o
foo.cc:(.text.startup+0xd3): relocation truncated to fit: R_X86_64_PC32 against symbol `s' defined in .bss section in /tmp/ccrYCv8N.o
collect2: error: ld returned 1 exit status

信息

递交者
类型
递交
题目
1-2 斐波那契数列的和
语言
C++
递交时间
2024-08-20 11:51:03
评测时间
2024-08-20 11:51:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes