/ Randle /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:15: warning: 'n' is used uninitialized in this function [-Wuninitialized]
  for(int i=1;i<n;i++)
              ~^~
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 184.0 KiB
#2 Wrong Answer 3ms 256.0 KiB
#3 Wrong Answer 3ms 256.0 KiB
#4 Wrong Answer 3ms 356.0 KiB
#5 Wrong Answer 3ms 328.0 KiB
#6 Wrong Answer 3ms 364.0 KiB
#7 Wrong Answer 3ms 256.0 KiB
#8 Wrong Answer 3ms 360.0 KiB
#9 Wrong Answer 1ms 384.0 KiB
#10 Wrong Answer 1ms 328.0 KiB

代码

#include<iostream>
using namespace std;
int main()
{
	int n;
	int sum=0;
	int x,y,w;
	for(int i=1;i<n;i++)
	{
		cin>>x>>y>>w;
		sum+=w;
	}
	cout<<sum;
	return 0;
}

信息

递交者
类型
递交
题目
游 T2
题目数据
下载
语言
C++
递交时间
2017-09-10 11:30:42
评测时间
2017-09-10 11:30:42
评测机
分数
0
总耗时
28ms
峰值内存
384.0 KiB