Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63322 何冠宇 矩阵倒序输出 C++ Compile Error 0 MS 0 KB 318 2024-01-07 11:46:06

Tests(0/0):


Code:

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


Run Info:

Main.cc:1:25: warning: extra tokens at end of #include directive
 #include .
                         ^
Main.cc: In function 'int main()':
Main.cc:7:7: error: 'a' was not declared in this scope
  cin>>a>>m;
       ^