Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
154825 陈君竹 12奇数和与偶数和 C++ Compile Error 0 MS 0 KB 188 2026-05-31 09:49:30

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int n,m,i,w; cin>>m>>n; for(i=w=m;i=w<=n;i+=2;w++){ cout<<i<<w<<endl; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
     for(i=w=m;i=w<=n;i+=2;w++){
                    ^
Main.cc:7:26: error: expected ')' before ';' token
     for(i=w=m;i=w<=n;i+=2;w++){
                          ^
Main.cc:7:30: error: expected ';' before ')' token
     for(i=w=m;i=w<=n;i+=2;w++){
                              ^