Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
142041 肖声晖 12输出m的倍数 C++ Compile Error 0 MS 0 KB 223 2025-12-29 17:08:22

Tests(0/0):


Code:

#include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int i,n,m; cin>>n>>m; for(i=1;i<=n;i++) if(i%m==0) cout<<i<<" "; return 0; }


Run Info:

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