| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146008 | 朱丰硕 | 09计算算数表达式 | C++ | Compile Error | 0 MS | 0 KB | 484 | 2026-01-25 20:12:53 |
#include <iostream> using namespace std; int main() { int n; cin >> n; if (n == 2) { cout << 29 << endl; // 闰年2月有29天 } else if (n == 1 || n == 3 || n == 5 || n == 7 || n == 8 || n == 10 || n == 12) { cout << 31 << endl; // 大月 } else if (n == 4 || n == 6 || n == 9 || n == 11) { cout << 30 << endl; // 小月 } else { cout << "Invalid." << endl; // n不在1-12范围内 }
Main.cc: In function 'int main()':
Main.cc:19:5: error: expected '}' at end of input
}
^