| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83310 | 张之隽 | 外围元素之和 | C++ | Compile Error | 0 MS | 0 KB | 343 | 2024-07-14 11:58:33 |
#include<bits/stdc++.h> using namespace std; int main() { int m,n,a[101][101],num=0; cin>>m>>n; for(int i = 1;i <= m;i++){ for(int j = 1;j <= n;j++){ cin >> a[i][j]; } } for(int i = 1;i <= m;i++){ for(int j = 1;j <= n;j++){ if(i == 1 || j == 1 || i == m || j == n) num+=; } } cout<<num; return 0
Main.cc: In function 'int main()':
Main.cc:16:49: error: expected primary-expression before ';' token
if(i == 1 || j == 1 || i == m || j == n) num+=;
^
Main.cc:21:8: error: expected ';' at end of input
return 0
^
Main.cc:21:8: error: expected '}' at end of input