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

Tests(0/0):


Code:

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


Run Info:

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