Compile Error

foo.cc:2:10: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
     main()
          ^
foo.cc: In function 'int main()':
foo.cc:4:9: error: 'printf' was not declared in this scope
         printf("\n original array:\n");
         ^~~~~~
foo.cc:4:9: note: suggested alternative: 'int'
         printf("\n original array:\n");
         ^~~~~~
         int
foo.cc:8:15: error: invalid conversion from 'int*' to 'int' [-fpermissive]
         {temp=a;
               ^
foo.cc:9:22: error: incompatible types in assignment of 'int' to 'int [5]'
             a=a[N-i-1];
                      ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1058 数组逆序输出
语言
C++
递交时间
2021-07-26 19:11:07
评测时间
2021-07-26 19:11:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes