| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150064 | 李嘉睿 | 统计硬币 | C++ | Compile Error | 0 MS | 0 KB | 406 | 2026-03-21 18:51:03 |
#include <iostream> using namespace std; int main() { int T; cin >> T; while (T--){ int n,m; cin cnt = 0; for (int z = 0; z <= n && z * 5 <= m;++z){ int y = (m - n) - 4 * z; int x = n - y - z; if (x >= 0 && y >= 0){ cut++; } } cout << cnt << endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:10:13: error: expected ';' before 'cnt'
cin cnt = 0;
^
Main.cc:10:20: warning: statement has no effect [-Wunused-value]
cin cnt = 0;
^
Main.cc:15:17: error: 'cut' was not declared in this scope
cut++;
^
Main.cc:18:17: error: 'cnt' was not declared in this scope
cout << cnt << endl;
^