Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
128235 吴雨卓 逆序输出 C++ Compile Error 0 MS 0 KB 169 2025-08-12 09:11:44

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:6: error: 'j' was not declared in this scope
 }for(j=i-1;j>=0;j--){
      ^