Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
154822 唐瑞尧 12输出m的倍数 C++ Compile Error 0 MS 0 KB 146 2026-05-31 09:46:35

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:10: error: 'n' was not declared in this scope
     cin>>n;
          ^
Main.cc:5:10: error: 'm' was not declared in this scope
     cin>>m;
          ^