| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 165353 | 王慕哲 | 外围元素之和 | C++ | Compile Error | 0 MS | 0 KB | 385 | 2026-11-14 17:57:48 |
#include <bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; int a[n][m]; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cin>>a[n][m]; if(i==1 || i==n){ s+=a[n][m]; } else if(j==1 || j==m){ s+=a[i][j]; } } } cout<<s; }
Main.cc: In function 'int main()':
Main.cc:11:17: error: 's' was not declared in this scope
s+=a[n][m];
^
Main.cc:14:17: error: 's' was not declared in this scope
s+=a[i][j];
^
Main.cc:18:11: error: 's' was not declared in this scope
cout<