#9310: 請問哪裡有錯???


lotus9137 (想念DST)


#include <iostream>
using namespace std;
int main()
{
    int x; cin>>x; 
int a,b,c,d,e;
    while (cin>>a>>b>>c>>d>>e)
    {
    int max=a;
    if (b>max) max=b;
    if (c>max) max=c;
    if (d>max) max=d;
    if (e>max) max=e;
    cout<<max;
    }
return 0;
}
有三個測資點錯誤 
#9311: Re:請問哪裡有錯???


anandrewboy70900 (ShowTsai)


一開始輸入一個整數
代表後面有幾個數
所以你cin >> x
後面要開個x格的int陣列
然後輸入x個數字