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:12:6: error: stray '\342' in program
       scanf("%ld",&m[k]);
      ^
foo.cc:12:7: error: stray '\200' in program
       scanf("%ld",&m[k]);
       ^
foo.cc:12:8: error: stray '\205' in program
       scanf("%ld",&m[k]);
        ^
foo.cc:3:1: error: expected ';' before 'void'
 void main()
 ^~~~
foo.cc:3:11: error: '::main' must return 'int'
 void main()
           ^
foo.cc: In function 'int main()':
foo.cc:8:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&n);
   ~~~~~^~~~~~~~~
foo.cc:12:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
       scanf("%ld",&m[k]);
         ~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
语言
C++
递交时间
2021-11-11 20:25:48
评测时间
2021-11-11 20:25:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes