Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137101 何兴驰 12自由落体 C++ Compile Error 0 MS 0 KB 147 2025-11-16 11:12:37

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int n; for(int i=0;i<=100;i++){ } printf("%.6lf",h); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:21: error: 'h' was not declared in this scope
      printf("%.6lf",h); 
                     ^
Main.cc:4:8: warning: unused variable 'n' [-Wunused-variable]
    int n;
        ^