| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 155310 | 李折曦 | 矩阵对角线 | C++ | Compile Error | 0 MS | 0 KB | 398 | 2026-06-06 15:27:58 |
#include<bits/stdc++.h> using namespace std; int a[101][101]; int main(){ int n,m; cin>>n>>m; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cin>>a[i][j]; } } for(int j=1;j<=n;j++){ for(int i=1;i>=n;i++){ printf("5%d",a[i][j]+m); if(i==j || i+j=n+1){ cout<<a[i][j]+m<<" "; }else{ cot<<a[i][j]<<" "; } } cout<<endl; } }
Main.cc: In function 'int main()':
Main.cc:15:18: error: lvalue required as left operand of assignment
if(i==j || i+j=n+1){
^
Main.cc:18:5: error: 'cot' was not declared in this scope
cot<