| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 104478 | 朱彦宇 | 11温度转换II | C++ | Compile Error | 0 MS | 0 KB | 156 | 2025-01-05 10:58:09 |
using namespace std; int main() { int a; cin>>a; double b=9.0/5*a+32; cout<<fixed<<setprecision(2)<<b; return 0;
Main.cc:6:11: error: stray '#' in program
double b=9.0/5*a+32;
^
Main.cc:6:23: error: stray '#' in program
double b=9.0/5*a+32;
^
Main.cc: In function 'int main()':
Main.cc:5:2: error: 'cin' was not declared in this scope
cin>>a;
^
Main.cc:5:6: error: 'gt' was not declared in this scope
cin>>a;
^
Main.cc:5:14: warning: statement has no effect [-Wunused-value]
cin>>a;
^
Main.cc:6:10: error: expected initializer before '&' token
double b=9.0/5*a+32;
^
Main.cc:6:24: error: invalid operands of types 'double' and 'int' to binary 'operator&'
double b=9.0/5*a+32;
^
Main.cc:6:29: warning: statement has no effect [-Wunused-value]
double b=9.0/5*a+32;
^
Main.cc:7:2: error: 'cout' was not declared in this scope
cout<<fixed<<setprecision(2)<<b;
^
Main.cc:7:7: error: 'lt' was not declared in this scope
cout<<fixed<<setprecision(2)<<b;
^
Main.cc:7:14: error: 'fixed' was not declared in this scope
cout<<fixed<<setprecision(2)<<b;
^
Main.cc:7:41: error: 'setprecision' was not declared in this scope
cout<<fixed<<setprecision(2)<<b;
^
Main.cc:7:50: error: 'b' was not declared in this scope
cout<<fixed<<setprecision(2)<<b;
^
Main.cc:8:10: error: expected '}' at end of input
return 0;
^