| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 119657 | 张文浩 | 13求n个数的最小值 | C++ | Compile Error | 0 MS | 0 KB | 276 | 2025-05-18 11:34:10 |
#include<iostream> using namespace std; int main(){ int n; cin>>n; if(n%1357984){ cout<<n,1>=n>=10; } return 0; } #include<iostream> using namespace std; int main(){ int n; cin>>n; if(n%1357984){ cout<<n,1>=n>=10; } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:15: warning: comparison of constant '10' with boolean expression is always false [-Wbool-compare]
cout<=n>=10;
^
Main.cc:7:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
cout<=n>=10;
^
Main.cc:7:19: warning: right operand of comma operator has no effect [-Wunused-value]
cout<=n>=10;
^
Main.cc: In function 'int main()':
Main.cc:15:5: error: redefinition of 'int main()'
int main(){
^
Main.cc:3:5: note: 'int main()' previously defined here
int main(){
^
Main.cc:19:15: warning: comparison of constant '10' with boolean expression is always false [-Wbool-compare]
cout<=n>=10;
^
Main.cc:19:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
cout<=n>=10;
^
Main.cc:19:19: warning: right operand of comma operator has no effect [-Wunused-value]
cout<=n>=10;
^