Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:23:33: warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<fixed<<setprecision(2)<<d/n*1.0<<"%"<<endl;
                                ~^~
/in/foo.cc:22:33: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<fixed<<setprecision(2)<<s/n*1.0<<"%"<<endl;
                                ~^~
/in/foo.cc:21:33: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<fixed<<setprecision(2)<<j/n*1.0<<"%"<<endl;
                                ~^~
/in/foo.cc:20:33: warning: 'w' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<fixed<<setprecision(2)<<w/n*1.0<<"%"<<endl;
                                ~^~
/in/foo.cc:8:2: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(int i;i<=n-1;i++)
  ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 380.0 KiB
#2 Wrong Answer 1ms 356.0 KiB
#3 Wrong Answer 1ms 356.0 KiB
#4 Wrong Answer 1ms 332.0 KiB
#5 Wrong Answer 1ms 320.0 KiB

信息

递交者
类型
递交
题目
P1107 1.6.5年龄与疾病
比赛
2025.1.1初级班结业测试
语言
C++
递交时间
2025-01-01 08:46:36
评测时间
2025-01-01 08:46:36
评测机
分数
0
总耗时
8ms
峰值内存
380.0 KiB