Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
105623 唐安轩 最大值与最小值的差 C++ Compile Error 0 MS 0 KB 310 2025-01-14 10:45:00

Tests(0/0):


Code:

#include<iostream> using namespace std; int a[10000] int main(){ int m,s,b; cin>>m; for(int i=0;i<m;i++){ s=a[i]; if(a[i]<s){ s=a[i]; } b=a[i]; if(b<a[i]){ b=a[i]; } } cout<<b-s<<endl; return 0; }


Run Info:

Main.cc:4:1: error: expected initializer before 'int'
 int main(){
 ^