Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4254 邓小龙 12自由落体 C++ Compile Error 0 MS 0 KB 238 2024-08-15 14:11:56

Tests(0/0):


Code:

# include<iostream> # include<iomanip> using namespace std; int main(){ double h=100; cout<<fixed<<setprecision(6); for(int i=1;i<=10;i++){ h=h/2; } cout<<i<<":"<<h<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:11: error: 'i' was not declared in this scope
     cout<i<<":"<<h<<endl;
           ^