Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
116505 | 王煜鑫 | 矩阵加法 | C++ | Compile Error | 0 MS | 0 KB | 413 | 2025-04-12 11:04:38 |
#include<bits/stdc++.h> using namespace std; int a[110][110],b[110][110]; int main(){ int n,m; cin>>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=0;j<m;j++){ cin>>b[i][lj; } } for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cout<<a[i][j+b[i][j]<<" "' } cout<<endl; } return 0; }
Main.cc:19:32: warning: missing terminating ' character cout<>b[i][lj; ^ Main.cc:14:19: error: expected ']' before ';' token cin>>b[i][lj; ^ Main.cc:19:29: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator<<' cout<