#21952: 測試顯示AC 答案送出去顯示WA?


annieyu12387@gmail.com (yuuuuuu)


以下是我打的程式碼

#include<iostream>

using namespace std;

int main()

{

int t;

int c;

int x[8];

cin >> t;

for (c = 0; c < 8; ++c)

{

cin >> x[c];

}

for (int i = 1; i <= 5; ++i)

{

cout << i << ' ';

}

cout << "\n";

 

cout << x[4] << ' ';

cout << x[5] << ' ';

cout << x[6] << ' ';

cout << x[7] << ' ';

cout << x[7] * t;

}

WA 顯示我的答案是1 2 4 8 64 (用2當t) 

明明我自己測試的結果就不是這樣阿 求救~