0_0_29457301_20397.cpp: In function 'int solve(int)':
0_0_29457301_20397.cpp:32:25: error: invalid operands of types 'll {aka long long int}' and 'int(int)' to binary 'operator*'
ans=(ans+((ll)j*phi[j]+(j==1))/2%p*i*i%p)%p;
^
0_0_29457301_20397.cpp:33:34: error: invalid operands of types 'll {aka long long int}' and 'int(int)' to binary 'operator*'
if(i!=j) ans=(ans+((ll)i*phi[i]+(i==1))/2%p*j*j%p)%p;
^
0_0_29457301_20397.cpp: In function 'int main()':
0_0_29457301_20397.cpp:44:57: error: 'mod' was not declared in this scope
printf("Case #%d: %d\n",Case++,(ll)m*solve(p-1)%mod);
^
|