Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:17:16: warning: for increment expression has no effect [-Wunused-value]
  for(i=0;i>=A;i<=B)
               ~^~~
/in/foo.cc: In function 'int sn(int)':
/in/foo.cc:11:9: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
  return s;
         ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:23:29: warning: 's' is used uninitialized in this function [-Wuninitialized]
           if(m+3==n && sn(m)%6==0 &&sn(n)%6==0)
                        ~~~~~^~
/in/foo.cc:23:35: warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
           if(m+3==n && sn(m)%6==0 &&sn(n)%6==0)
              ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/in/foo.cc:23:42: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
           if(m+3==n && sn(m)%6==0 &&sn(n)%6==0)
                                     ~~~~~^~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 356.0 KiB
#2 Wrong Answer 1ms 344.0 KiB

信息

递交者
类型
递交
题目
P1127 幸运数对(2)
语言
C++
递交时间
2021-12-12 14:30:06
评测时间
2021-12-12 14:30:06
评测机
分数
0
总耗时
3ms
峰值内存
356.0 KiB