Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
157316 李沐阳 数字方阵 C++ Compile Error 0 MS 0 KB 417 2026-07-22 14:09:22

Tests(0/0):


Code:

//如果存在鞍点,输出鞍点所在的行、列及其值,如果不存在,输出"not found"。#include<bits/stdc++.h> using namespace std; int main(){ int n,a[10][10]={}; cin>>n; for(int i=0;i<n;i++){ for(int j=i;j<n-i;j++){ for(int q=i;q<n-i;q++){ a[j][q]=i+1; } } } for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ cout<<a[i][j]<<' '; } cout<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:2: error: 'cin' was not declared in this scope
  cin>>n;
  ^
Main.cc:15:4: error: 'cout' was not declared in this scope
    cout<