Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98349 | 张新福 | 06小数除法 | C++ | Compile Error | 0 MS | 0 KB | 158 | 2024-11-19 16:28:07 |
#include <iostream> #include <iomanip> using namesapce std; int main(){ double a,b,c; cin>>a>>b; c=a/b; cout<<fixed<<setprecision(2)<<c<<endl; }
Main.cc:3:7: error: expected nested-name-specifier before 'namesapce' using namesapce std; ^ Main.cc: In function 'int main()': Main.cc:7:2: error: 'cin' was not declared in this scope cin>>a>>b; ^ Main.cc:7:2: note: suggested alternative: In file included from Main.cc:1:0: /usr/include/c++/5/iostream:60:18: note: 'std::cin' extern istream cin; /// Linked to standard input ^ Main.cc:9:2: error: 'cout' was not declared in this scope cout<& __os) ^