| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133128 | 张咏灏 | 13求n个数的最小值 | C++ | Compile Error | 0 MS | 0 KB | 259 | 2025-10-14 20:01:17 |
#include<iostream> using namespace std; int main(){ int a,b,c,d; cin>>a; for(int i=1;i<a/2;i++){ cin>>b>>c; if(b<c)[ d=b; }else{ d=c; } } cout<<d<<endl; return 0; }
Main.cc: In function 'int main()':
Main.cc:9:13: warning: lambda capture initializers only available with -std=c++14 or -std=gnu++14
d=b;
^
Main.cc:9:16: error: expected ',' before ';' token
d=b;
^
Main.cc:9:16: error: expected identifier before ';' token
Main.cc:9:16: error: expected ']' before ';' token
Main.cc: In lambda function:
Main.cc:9:16: error: expected '{' before ';' token
Main.cc: In function 'int main()':
Main.cc:10:10: error: 'else' without a previous 'if'
}else{
^
Main.cc: At global scope:
Main.cc:14:2: error: 'cout' does not name a type
cout<