Problem | iqtest |
---|---|
User | helloworld |
Submission Time | 2023-08-02 12:27:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
iqtest.cpp: In function ‘int main()’:
iqtest.cpp:11:29: error: invalid operands of types ‘__gnu_cxx::__promote_2<long long int, int, double, double>::__type’ {aka ‘double’} and ‘long long int’ to binary ‘operator%’
11 | cout<<(1+a[i]+pow(a[i],2))%p[i]<<"\n";
| ~~~~~~~~~~~~~~~~~~~~^~~~~
| | |
| | long long int
| __gnu_cxx::__promote_2<long long int, int, double, double>::__type {aka double}