| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 142017 | whs | 12输出m的倍数 | C++ | Compile Error | 0 MS | 0 KB | 125 | 2025-12-29 17:02:04 |
#include<iostream> using namespace std; int main(){ int n,m; cin>>n>>m for(m;m<=n;m=m+m){ cout<<m<<endl; } }
Main.cc: In function 'int main()':
Main.cc:6:2: error: expected ';' before 'for'
for(m;m<=n;m=m+m){
^
Main.cc:6:9: warning: statement has no effect [-Wunused-value]
for(m;m<=n;m=m+m){
^
Main.cc:6:18: error: expected ';' before ')' token
for(m;m<=n;m=m+m){
^