| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68413 | 陈昊然 | 13求n个数的最小值 | C++ | Compile Error | 0 MS | 0 KB | 213 | 2024-03-23 11:55:43 |
#include<bits/stdc++.h> using namespace std; int main(){ int mn=2100000000 int n; int tz; cin>>n; for(int i=1;i<=n;i++){ cin>>tz; if(tz<mn){ mx=tz; } } cout<<mn; return 0; }
Main.cc: In function 'int main()':
Main.cc:6:2: error: expected ',' or ';' before 'int'
int n;
^
Main.cc:8:7: error: 'n' was not declared in this scope
cin>>n;
^
Main.cc:12:4: error: 'mx' was not declared in this scope
mx=tz;
^