Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63566 段文昊 矩阵倒序输出 C++ Compile Error 0 MS 0 KB 296 2024-01-18 10:54:42

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,m,mx=0; cin>>n>>m; int a[n][m]; 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<<mx; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:10: warning: unused variable 'mx' [-Wunused-variable]
  int n,m,mx=0;
          ^
Main.cc: At global scope:
Main.cc:18:2: error: 'cout' does not name a type
  cout<