#11860: 測試可但解題為何不可 雖然超白癡但還是問問


nottherealeric (idiotic novice)


#include <iostream>
using namespace std;

int main(){
for(int i=1; i<=3; i++){
char a[100];
cin >> a;
cout << "hello, " << a << '\n';

}

return 0;
}

#11874: Re:測試可但解題為何不可 雖然超白癡但還是問問


nkavengertree (LaG)


#include
using namespace std;

int main(){
for(int i=1; i<=3; i++){
char a[100];
cin >> a;
cout << "hello, " << a << '\n';

}

return 0;
}

資料可能不只三個
OR

字串長度超過100都可能發生問題