| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 96093 | 陈治宸 | 04圆的面积 | C++ | Compile Error | 0 MS | 0 KB | 205 | 2024-11-03 08:53:32 |
#include<iostream> #include<cstdio> using namespase std; int main(){ double PI=3.1415926; double r,s; cin>>r; s=PI*r*r; printf("圆的面积:%.2lf\n",s) return 0; }
Main.cc:3:7: error: expected nested-name-specifier before 'namespase'
using namespase std;
^
Main.cc: In function 'int main()':
Main.cc:7:5: error: 'cin' was not declared in this scope
cin>>r;
^
Main.cc:7:5: 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:10:5: error: expected ';' before 'return'
return 0;
^