Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:7: warning: unused variable 'k' [-Wunused-variable]
   int k=i;
       ^
/in/foo.cc: In function 'int ss(int)':
/in/foo.cc:45:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:27:12: warning: 'imax' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<imax; 
            ^
/tmp/ccctZTMQ.o: In function `_GLOBAL__sub_I_a':
foo.cc:(.text.startup+0x183): relocation truncated to fit: R_X86_64_PC32 against `.bss'
foo.cc:(.text.startup+0x1a1): relocation truncated to fit: R_X86_64_PC32 against `.bss'
collect2: error: ld returned 1 exit status

信息

递交者
类型
递交
题目
5-5 统计素数因子
语言
C++
递交时间
2021-07-08 11:18:04
评测时间
2021-07-08 11:18:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes