Compile Error

foo.cc:2:20: error: stray '\357' in program
 using namespace std;
                    ^
foo.cc:2:21: error: stray '\274' in program
 using namespace std;
                     ^
foo.cc:2:22: error: stray '\233' in program
 using namespace std;
                      ^
foo.cc:3:9: error: stray '\357' in program
 int main(){
         ^
foo.cc:3:10: error: stray '\274' in program
 int main(){
          ^
foo.cc:3:11: error: stray '\210' in program
 int main(){
           ^
foo.cc:3:12: error: stray '\357' in program
 int main(){
            ^
foo.cc:3:13: error: stray '\274' in program
 int main(){
             ^
foo.cc:3:14: error: stray '\211' in program
 int main(){
              ^
foo.cc:15:9: error: stray '\357' in program
 return 0;
         ^
foo.cc:15:10: error: stray '\274' in program
 return 0;
          ^
foo.cc:15:11: error: stray '\233' in program
 return 0;
           ^
foo.cc:16:1: error: stray '\357' in program
 }
 ^
foo.cc:16:2: error: stray '\275' in program
 }
  ^
foo.cc:16:3: error: stray '\235' in program
 }
   ^
foo.cc:3:1: error: expected ';' before 'int'
 int main(){
 ^~~
foo.cc:3:5: error: cannot declare '::main' to be a global variable
 int main(){
     ^~~~
foo.cc:4:3: error: expected primary-expression before 'int'
   int v,n,h,r,pi,a;
   ^~~
foo.cc:4:3: error: expected '}' before 'int'
foo.cc:5:3: error: 'cin' does not name a type; did you mean 'sin'?
   cin>>h>>r;
   ^~~
   sin
foo.cc:6:3: error: 'pi' does not name a type
   pi=3.14159;
   ^~
foo.cc:7:3: error: 'v' does not name a type
   v=pi*r*r*h;
   ^
foo.cc:8:3: error: 'a' does not name a type
   a=20000;
   ^
foo.cc:9:3: error: 'n' does not name a type; did you mean 'yn'?
   n=a/v;
   ^
   yn
foo.cc:10:3: error: 'cout' does not name a type; did you mean 'cosl'?
   cout<<n<<endl;
   ^~~~
   cosl
foo.cc:15:1: error: expected unqualified-id before 'return'
 return 0;
 ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1000 大象喝水
语言
C++
递交时间
2021-08-31 14:25:22
评测时间
2021-08-31 14:25:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes