Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
5903 | 谢锦卓 | 13自由落体 | C++ | Compile Error | 0 MS | 0 KB | 288 | 2024-12-21 09:26:34 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() using namespace std; int main(){ dou h=100; double n=100; for(int i=1;i<=10;i++){ h=h/2; n=n+(h*2); } cout<<fixed<<setprecision(6)<<n<<" "<<h<<endl; return 0; }
Main.cc: In function 'int main()': Main.cc:5:5: error: 'dou' was not declared in this scope dou h=100; ^ Main.cc:5:9: error: expected ';' before 'h' dou h=100; ^ Main.cc:8:9: error: 'h' was not declared in this scope h=h/2; ^ Main.cc:11:32: error: 'setprecision' was not declared in this scope cout<fixed<<setprecision(6)<<n<<" "<<h<<endl; ^ Main.cc:11:43: error: 'h' was not declared in this scope cout<<fixed<<setprecision(6)<<n<<" "<<h<<endl; ^