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

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
     for(0<=m<=n<=1000;m+=2){
          ^
Main.cc:7:16: warning: comparison of constant '1000' with boolean expression is always true [-Wbool-compare]
     for(0<=m<=n<=1000;m+=2){
                ^
Main.cc:7:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
     for(0<=m<=n<=1000;m+=2){
             ^
Main.cc:7:22: warning: statement has no effect [-Wunused-value]
     for(0<=m<=n<=1000;m+=2){
                      ^
Main.cc:7:27: error: expected ';' before ')' token
     for(0<=m<=n<=1000;m+=2){
                           ^
Main.cc:8:18: error: 'i' was not declared in this scope
         cout<