| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 80025 | 刘昊炜 | 19灯的编号 | C++ | Compile Error | 0 MS | 0 KB | 333 | 2024-07-11 10:36:27 |
#include<iostream> using namespace std; int main() { int n, m; cin >> n >> m; int a[n+1] = {0}; for (int j = 1; j <= m; j++) { for (int i = 1; i <= n; i++) { if (i % j == 0) { a[i]++; } } } cout<<1; for (int i = 2; i <= n; i++) { if (a[i] % 2 == 1) { cout<<"," << i; } }
Main.cc: In function 'int main()':
Main.cc:18:5: error: expected '}' at end of input
}
^