Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
125791 | 陈淮遇 | 03温度转换 | C++ | Compile Error | 0 MS | 0 KB | 148 | 2025-07-15 15:23:04 |
#include<bits/stdc++.h> using namespace std; int main() { double c; double f; cin>>c; long f = c * 9 / 5 + 32; cout << f; return 0; }
Main.cc: In function 'int main()': Main.cc:7:7: error: conflicting declaration 'long int f' long f = c * 9 / 5 + 32; ^ Main.cc:5:9: note: previous declaration as 'double f' double f; ^