| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 148722 | 8 | 12自由落体 | C++ | Compile Error | 0 MS | 0 KB | 165 | 2026-02-28 15:47:01 |
#include<iostream> using namespace std; int main(){ doubleh=100; for(inti=1;i<=10;i++){ h=h/2; } printf("%.6lf",h); return 0; }
Main.cc: In function 'int main()':
Main.cc:4:5: error: 'doubleh' was not declared in this scope
doubleh=100;
^
Main.cc:5:9: error: 'inti' was not declared in this scope
for(inti=1;i<=10;i++){
^
Main.cc:5:16: error: 'i' was not declared in this scope
for(inti=1;i<=10;i++){
^
Main.cc:6:9: error: 'h' was not declared in this scope
h=h/2;
^
Main.cc:8:20: error: 'h' was not declared in this scope
printf("%.6lf",h);
^