Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5559 刘芃伽 12输出m的倍数 C++ Compile Error 0 MS 0 KB 156 2024-11-30 09:54:10

Tests(0/0):


Code:

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


Run Info:

Main.cc:7:14: error: empty character constant
     return 0;''
              ^
Main.cc: In function 'int main()':
Main.cc:6:33: error: expected primary-expression before '=' token
     for(int i=1;i<=n;i++){if(m%==0) cout<<i<<' '}
                                 ^
Main.cc:6:49: error: expected ';' before '}' token
     for(int i=1;i<=n;i++){if(m%==0) cout<<i<<' '}
                                                 ^
Main.cc:8:1: error: expected ';' before '}' token
 }
 ^
Main.cc:8:1: warning: statement has no effect [-Wunused-value]