Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119719 | 王晏林 | 13能被13整数的数 | C++ | Compile Error | 0 MS | 0 KB | 193 | 2025-05-18 16:28:07 |
#include<iostream> using namespace std; int main(){ int mn,n,sum; cin>>m>>n; for(int i=m;n<=i++){ if(i%13==0) sum+=i; } cout<<sum; return 0; }
Main.cc: In function 'int main()': Main.cc:5:10: error: 'm' was not declared in this scope cin>>m>>n; ^ Main.cc:6:23: error: expected ';' before ')' token for(int i=m;n<=i++){ ^ Main.cc:4:9: warning: unused variable 'mn' [-Wunused-variable] int mn,n,sum; ^