| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 128243 | 王梓轩 | 矩阵加法 | C++ | Runtime Error | 9 MS | 320 KB | 402 | 2025-08-12 10:53:50 |
#include<iostream> using namespace std; int a[78][78],b[91][91],n,s,sum=0; int main() { cin>>n>>s; for(int i=1;i<=n;i++) { for(int j=1;j<=s;j++) { cin>>a[i][j]; } } for(int i=1;i<=n;i++) { for(int j=1;j<=s;j++) { cin>>b[i][j]; } } for(int i=1;i<=n;i++) { for(int j=1;j<=s;j++) { cout<<a[i][j]+b[i][j]<<" "; } cout<<endl; } return 0; }
Runtime Error:Segmentation fault