Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
154939 刘睿霖 12输出m的倍数 C++ Compile Error 0 MS 0 KB 175 2026-05-31 11:27:22

Tests(0/0):


Code:

#include<iostream> using namespace std; int main() { int n; int m; cin>>n>>m; for(int i=0;i<=n;+=m) cout<<i<<" "; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:22: error: expected primary-expression before '+=' token
     for(int i=0;i<=n;+=m)
                      ^