记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:30:5: warning: comparison of constant '1000' with boolean expression is always true [-Wbool-compare]
 1<=a<=1000;
 ~~~~^~~~~~
/in/foo.cc:30:2: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
 1<=a<=1000;
 ~^~~
/in/foo.cc:30:5: warning: statement has no effect [-Wunused-value]
 1<=a<=1000;
 ~~~~^~~~~~
/in/foo.cc:31:5: warning: comparison of constant '1000' with boolean expression is always true [-Wbool-compare]
 1<=b<=1000;
 ~~~~^~~~~~
/in/foo.cc:31:2: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
 1<=b<=1000;
 ~^~~
/in/foo.cc:31:5: warning: statement has no effect [-Wunused-value]
 1<=b<=1000;
 ~~~~^~~~~~
/in/foo.cc:28:13: warning: unused variable 'x' [-Wunused-variable]
 int a,b,c,d,x,y;
             ^
/in/foo.cc:28:15: warning: unused variable 'y' [-Wunused-variable]
 int a,b,c,d,x,y;
               ^
/in/foo.cc: In function 'int zuixiaogongbeishu(int, int)':
/in/foo.cc:11:3: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
  k=l*i/k;
  ~^~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:11:3: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]
  k=l*i/k;
  ~^~~~~~
/in/foo.cc:5:6: note: 'k' was declared here
  int k,l=m,i=n;
      ^
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 1ms 340.0 KiB
#3 Accepted 1ms 336.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Wrong Answer 1ms 332.0 KiB

信息

递交者
类型
递交
题目
P1012 分数求和
语言
C++
递交时间
2024-10-04 14:54:32
评测时间
2024-10-04 14:54:32
评测机
分数
80
总耗时
8ms
峰值内存
384.0 KiB