| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 145654 | 张晓冉 | 08判断区间 | C++ | Compile Error | 0 MS | 0 KB | 233 | 2026-01-25 17:44:27 |
#include<iostream> using namespace std; int main(){ int a,x,y; cin>>a>>x>>y; for(int i = x;i <= y;i++){ if(i = a){ cout<<"yes" }else{ cout<<"no"; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:14: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(i = a){
^
Main.cc:9:9: error: expected ';' before '}' token
}else{
^