| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137420 | 余秋烨 | 07苹果和虫子 | C++ | Compile Error | 0 MS | 0 KB | 229 | 2025-11-17 17:03:38 |
#include <iostream> using namespace std; int main() { int n, x, y; cin >> n >> x >> y; int eaten_apples = 0; if (y % x == 0) { eaten_apples = y / x; } else { eaten_apples = y / x + 1; }
Main.cc: In function 'int main()':
Main.cc:7:8: warning: variable 'eaten_apples' set but not used [-Wunused-but-set-variable]
int eaten_apples = 0;
^
Main.cc:12:4: error: expected '}' at end of input
}
^