| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154808 | 陈君竹 | 12奇数和与偶数和 | C++ | Compile Error | 0 MS | 0 KB | 240 | 2026-05-31 09:29:55 |
#include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; for(0<=m<=n<=1000;m+=2){ cout<<m<<endl; } for(0<=m<=n<=1000;m++){ cout<<m<<endl; } return 0; }
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:10:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
for(0<=m<=n<=1000;m++){
^
Main.cc:10:16: warning: comparison of constant '1000' with boolean expression is always true [-Wbool-compare]
for(0<=m<=n<=1000;m++){
^
Main.cc:10:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
for(0<=m<=n<=1000;m++){
^
Main.cc:10:22: warning: statement has no effect [-Wunused-value]
for(0<=m<=n<=1000;m++){
^
Main.cc:10:26: error: expected ';' before ')' token
for(0<=m<=n<=1000;m++){
^