Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155587 余秋烨 逆序输出 C++ Compile Error 0 MS 0 KB 235 2026-06-08 16:26:33

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int>>a[i] for(int i=0;i<n;i++){ cin>> a[i]; } for(int i=n-1;i>0;i--){ cout<<n; cout<<a[i]<<" "; } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:7: error: expected unqualified-id before '>>' token
    int>>a[i]
       ^
Main.cc:7:16: error: 'i' was not declared in this scope
    for(int i=0;i