| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154826 | 陈君竹 | 12奇数和与偶数和 | C++ | Compile Error | 0 MS | 0 KB | 186 | 2026-05-31 09:51:13 |
#include<bits/stdc++.h> using namespace std; int main() { int n,m,i,w; cin>>n>>m; for(i=m;i<=n;i+=2)(w=m;w<=n;w++){ cout<<i<<w<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:7:27: error: expected ')' before ';' token
for(i=m;i<=n;i+=2)(w=m;w<=n;w++){
^
Main.cc:7:29: warning: statement has no effect [-Wunused-value]
for(i=m;i<=n;i+=2)(w=m;w<=n;w++){
^
Main.cc:7:36: error: expected ';' before ')' token
for(i=m;i<=n;i+=2)(w=m;w<=n;w++){
^