| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 138496 | hjx4333 | 美丽数 | C++ | Compile Error | 0 MS | 0 KB | 265 | 2025-11-25 15:32:07 |
#include <bits/stdc++.h> using namespace std; int main() { long long j,n,s; while (cin>>n) { s=0; j=3; k=4; while (s!=n) { if (j%3==0 or k%5==0) s++; j++; k++; } cout<<j-1<<endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:10:6: error: 'k' was not declared in this scope
k=4;
^