Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
106494 金昱帆 最大值与最小值的差 C++ Compile Error 0 MS 0 KB 290 2025-01-16 11:57:28

Tests(0/0):


Code:

#include<bits/stdC++.h> using namespace std; int main(){ int n; cin>>n; int a[n]; int max=a[0]; for(int i=1;i<n;i++){ if(a[i]>max){ max=a[i]; } } int oi=0; for(int i=1;i<n;i++){ if(a[i]<oi){ oi=a[i]; } } cout<<max-oi; return 0; }


Run Info:

Main.cc:1:25: fatal error: bits/stdC++.h: No such file or directory
 #include 
                         ^
compilation terminated.