| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 119945 | 何睿函 | 22不与最大数相同的数字之和 | C++ | Compile Error | 0 MS | 0 KB | 311 | 2025-05-22 19:25:31 |
#include<bits/stdc++.h> using namespace std; int mai(){ int N; cin>>N; int a[N]; for(int i=0;i<N;i++){ cin>>a[i]; } int x=a[0]; for(int i=1;i<N;i++){ if(a[i]>x){ x=a[i]; } } int y=0; for(int i=0;i<N;i++){ if(a[i]<x){ y=y+a[i]; } } cout<<y; retrun 0; }
Main.cc: In function 'int mai()':
Main.cc:23:5: error: 'retrun' was not declared in this scope
retrun 0;
^
Main.cc:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^