| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 122978 | 张修睿 | 12for循环练习III | C++ | Compile Error | 0 MS | 0 KB | 146 | 2025-06-22 12:31:42 |
#include<bits/stdc++.h> using namespace std; int main() { for(int i=1;i<=100;i++){ if(i%2=1){ cout<<i<<" "; } } }
Main.cc: In function 'int main()':
Main.cc:5:15: error: lvalue required as left operand of assignment
if(i%2=1){
^