QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#107897 | #4. Gap | juruocjl | Compile Error | / | / | C++17 | 358b | 2023-05-23 07:21:28 | 2023-05-23 07:21:31 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘ll findGap(int, int)’: answer.code:11:72: error: invalid conversion from ‘ll’ {aka ‘long long int’} to ‘long long int*’ [-fpermissive] 11 | for(int i=1;i<=n-i+1;i++)MinMax(a[i-1]+1,a[n-i+2]-1,a[i],a[n-i+1]); | ~~~^ | | | ll {aka long long int} In file included from answer.code:1: gap.h:2:35: note: initializing argument 3 of ‘void MinMax(long long int, long long int, long long int*, long long int*)’ 2 | void MinMax(long long, long long, long long*, long long*); | ^~~~~~~~~~ answer.code:11:81: error: invalid conversion from ‘ll’ {aka ‘long long int’} to ‘long long int*’ [-fpermissive] 11 | for(int i=1;i<=n-i+1;i++)MinMax(a[i-1]+1,a[n-i+2]-1,a[i],a[n-i+1]); | ~~~~~~~^ | | | ll {aka long long int} In file included from answer.code:1: gap.h:2:47: note: initializing argument 4 of ‘void MinMax(long long int, long long int, long long int*, long long int*)’ 2 | void MinMax(long long, long long, long long*, long long*); | ^~~~~~~~~~ answer.code:12:38: error: ‘chkmx’ was not declared in this scope 12 | for(int i=2;i<=n;i++)chkmx(ans,a[i]-a[i-1]); | ^~~~~