Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
73840 李韶凡 数组倒序输出 C++ Compile Error 0 MS 0 KB 191 2024-05-19 18:00:40

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int a[100]={}; int >> n; for(int i=0;i<n;i++){ cin >> a[i]; } for(int i=n-1;i>=0;i--){ cout << a[i] << ' '; } }


Run Info:

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