Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117159 施宸雨 12自由落体 C++ Compile Error 0 MS 0 KB 216 2025-04-13 20:22:37

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:9: error: conflicting declaration 'double n'
  double n;
         ^
Main.cc:7:6: note: previous declaration as 'int n'
  int n = 100;
      ^