@root 帮忙看看是哪儿错了?

12121 Game for peace 2024-05-25 16:15:07 8
#include<iostream>
using namespace std;
int main(){
    int n;
    cin >> n;
    int a[101];
    for (int i = 0; i < n; i++){
        cin >> a[i];
    }
    for (int i = 0; i < n; i++){
        cout << a[i];
    }
    return 0;
}
{{ vote && vote.total.up }}

共 1 条回复

root 站长

,每两个整数之间用空格分隔。 所以我们的输出应该在输出 a[i] 之后加上一个空格。