Problem iqtest
User helloworld
Submission Time 2023-08-02 10:04:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

iqtest.cpp: In function ‘int main()’:
iqtest.cpp:11:38: error: invalid operands of types ‘__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type’ {aka ‘double’} and ‘long long int’ to binary ‘operator%’
11 | cout<<(pow(a[i],p[i]+1)-1)/(a[i]-1)%p[i]<<"\n";
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
| | |
| | long long int
| __gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}