| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150062 | 朱正芮 | 统计硬币 | C++ | Compile Error | 0 MS | 0 KB | 423 | 2026-03-21 18:50:58 |
#include <iostream> using namespace std; int main(){ int T; cin >> T; while (T--){ int n,m; cin >> n >> m; int 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){ cnt++; } } cout << cnt << endl; } return 0; }
Main.cc: In function 'int main()':
Main.cc:13:27: error: lvalue required as left operand of assignment
int x = n - y = z;
^