Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:13: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
     for(int i;i<10;i++)
             ^
/in/foo.cc:14:5: warning: 'i' is used uninitialized in this function [-Wuninitialized]
     if(i==10) cout<<-1<<endl;
     ^~
/in/foo.cc:11:13: warning: 'i' may be used uninitialized in this function [-Wmaybe-uninitialized]
     for(int i;i<10;i++)
             ^
# 状态 耗时 内存占用
#1 Accepted 2ms 204.0 KiB
#2 Wrong Answer 2ms 228.0 KiB
#3 Accepted 1ms 208.0 KiB
#4 Wrong Answer 1ms 220.0 KiB
#5 Accepted 1ms 216.0 KiB
#6 Accepted 1ms 224.0 KiB
#7 Accepted 1ms 220.0 KiB
#8 Accepted 1ms 220.0 KiB
#9 Accepted 1ms 216.0 KiB
#10 Accepted 1ms 224.0 KiB

信息

递交者
类型
递交
题目
P1805 最美味的苹果
比赛
2021.5.26本周数组练习(学校社团专练)
语言
C++
递交时间
2021-06-02 16:56:26
评测时间
2021-06-02 16:56:26
评测机
分数
80
总耗时
18ms
峰值内存
228.0 KiB