记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1507 3. Concate and count
语言
C++
递交时间
2023-10-10 09:28:23
评测时间
2023-10-10 09:28:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes