foo.cc: In function 'int main()':
foo.cc:44:51: error: cannot convert 'long long int*' to 'int*'
44 | max1 = Sum(a[i],i,a,n);
| ^
| |
| long long int*
foo.cc:5:25: note: initializing argument 3 of 'int Sum(int, int, int*, int)'
5 | int Sum(int n,int k,int a[],int len)
| ~~~~^~~
foo.cc:50:51: error: cannot convert 'long long int*' to 'int*'
50 | max2 = Sum(a[i],i,a,n);
| ^
| |
| long long int*
foo.cc:5:25: note: initializing argument 3 of 'int Sum(int, int, int*, int)'
5 | int Sum(int n,int k,int a[],int len)
| ~~~~^~~
foo.cc:31:20: warning: unused variable 'tmp' [-Wunused-variable]
31 | int n,t,t1,tmp;
| ^~~
[Hydro](https://hydro.ac)提供评测服务