求问大佬,为什么全wa?
查看原帖
求问大佬,为什么全wa?
646116
wuyitian2016楼主2022/4/16 23:02

求问大佬,为什么全wa?

#include<bits/stdc++.h>
using namespace std;

int main()
{
    double n,t;
    cin>>n;
    for (int i=0;i>=n;i++)
    {
        int x;
        cin>>x;
        t+=x;
    }
    cout<<(double)(t)/n;
    return 0;
}
2022/4/16 23:02
加载中...