Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
125922 | 袁梓豪 | 03温度转换 | C++ | Compile Error | 0 MS | 0 KB | 167 | 2025-07-15 16:36:42 |
#include<bits/stdc++.h> using namespace std; int main() { double c; double f; cin>>c; f = c * 9 / 5 + 32; cout << f; return 0; }
Main.cc:1:25: warning: extra tokens at end of #include directive #include using namespace std; ^ Main.cc: In function 'int main()': Main.cc:5:5: error: 'cin' was not declared in this scope cin>>c; ^ Main.cc:5:5: note: suggested alternative: In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:74:0, from Main.cc:1: /usr/include/c++/5/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ Main.cc:7:5: error: 'cout' was not declared in this scope cout << f; ^ Main.cc:7:5: note: suggested alternative: In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:74:0, from Main.cc:1: /usr/include/c++/5/iostream:61:18: note: 'std::cout' extern ostream cout; /// Linked to standard output ^