| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133138 | 芦睿霖 | 07判断奇数 | C++ | Compile Error | 0 MS | 0 KB | 136 | 2025-10-15 14:19:36 |
#include <iostream> using namespace std; int main(){ int a; cin>>a; a>=0<=100; a%2; cout<<"yes" cout<<"no" return 0; }
Main.cc: In function 'int main()':
Main.cc:6:6: warning: comparison of constant '100' with boolean expression is always true [-Wbool-compare]
a>=0<=100;
^
Main.cc:6:3: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
a>=0<=100;
^
Main.cc:6:11: warning: statement has no effect [-Wunused-value]
a>=0<=100;
^
Main.cc:7:3: warning: statement has no effect [-Wunused-value]
a%2;
^
Main.cc:9:2: error: expected ';' before 'cout'
cout<<"no"
^