Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
71031 任斌 13自由落体 C++ Compile Error 0 MS 0 KB 203 2024-04-20 21:59:54

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { float h=100,sum=100; for(int i=1;i<=10;i++) h=h/2; sum+=2*h; printf("%.6f%.6f",sum,h) return 0; }


Run Info:

Main.cc:1:9: error: #include expects "FILENAME" or 
 #include<bits/stdc++.h>
         ^
Main.cc: In function 'int main()':
Main.cc:9:28: error: 'printf' was not declared in this scope
     printf("%.6f%.6f",sum,h)
                            ^