| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137439 | 余秋烨 | 07苹果和虫子 | C++ | Compile Error | 0 MS | 0 KB | 230 | 2025-11-17 17:12:17 |
#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:10:10: error: expected primary-expression before '}' token
} else} {
^
Main.cc: At global scope:
Main.cc:10:12: error: expected unqualified-id before '{' token
} else} {
^