Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101798 | 彭士宝 | 12自由落体 | C++ | Compile Error | 0 MS | 0 KB | 256 | 2024-12-18 21:18:10 |
#include <iostream> #include <iomanip> // 用于设置输出精度 using namespace std; int main() { double iq = 100.0; int b = 10; double iq = iq / pow(2, b - 1); cout << fixed << setprecision(6) << iq << endl; return 0; }
Main.cc: In function 'int main()': Main.cc:8:12: error: redeclaration of 'double iq' double iq = iq / pow(2, b - 1); ^ Main.cc:6:12: note: 'double iq' previously declared here double iq = 100.0; ^ Main.cc:8:34: error: 'pow' was not declared in this scope double iq = iq / pow(2, b - 1); ^