| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 127815 | 何睿函 | 外围元素之和 | C++ | Compile Error | 0 MS | 0 KB | 371 | 2025-07-29 13:43:21 |
V#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[i][j]; } } int x=0; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { if(i==0||i==n-1||j==0||j==m-1){ x+=a[i][j]; } } } cout<<x; return 0; }
Main.cc:1:2: error: stray '#' in program V#include ^ Main.cc:1:1: error: 'V' does not name a type V#include ^ Main.cc: In function 'int main()': Main.cc:5:2: error: 'cin' was not declared in this scope cin >> n >> m; ^ Main.cc:20:2: error: 'cout' was not declared in this scope cout<