| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83261 | 游四鑫 | 外围元素之和 | C++ | Compile Error | 0 MS | 0 KB | 355 | 2024-07-14 11:38:01 |
#include<iostream> using namespace std; int a[101][101],b[101][101]; int main(){ int n,m,sum=0; 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++){ if(i==0||j==0||i==n-1||i==m-1){ sum+=a[i][j0;] } } } cout<<sum; return 0; }
Main.cc: In function 'int main()':
Main.cc:15:23: error: 'j0' was not declared in this scope
sum+=a[i][j0;]
^
Main.cc:15:25: error: expected ']' before ';' token
sum+=a[i][j0;]
^
Main.cc:15:26: error: expected primary-expression before ']' token
sum+=a[i][j0;]
^