Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
125792 陈淮遇 03温度转换 C++ Compile Error 0 MS 0 KB 150 2025-07-15 15:23:59

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { double c; double f; cin>>c; double f = c * 9 / 5 + 32; cout << f; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:9: error: redeclaration of 'double f'
  double f = c * 9 / 5 + 32;
         ^
Main.cc:5:9: note: 'double f' previously declared here
  double f;
         ^