Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:22:37: warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<fixed<<setprecision(2)<<d/n<<"%"<<endl;
                                     ^~~
/in/foo.cc:21:37: warning: 'f' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<fixed<<setprecision(2)<<f/n<<"%"<<endl;
                                     ^~~
/in/foo.cc:20:37: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<fixed<<setprecision(2)<<y/n<<"%"<<endl;
                                     ^~~
/in/foo.cc:19:37: warning: 'z' may be used uninitialized in this function [-Wmaybe-uninitialized]
  cout<<fixed<<setprecision(2)<<z/n<<"%"<<endl;
                                     ^~~
/in/foo.cc:7:2: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
  for(int i;i<=n;i++)
  ^~~
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 412.0 KiB
#2 Wrong Answer 1ms 364.0 KiB
#3 Wrong Answer 1ms 328.0 KiB
#4 Wrong Answer 1ms 328.0 KiB
#5 Wrong Answer 1ms 376.0 KiB

信息

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