0_0_29831944_1282.cpp: In function 'int main()': 0_0_29831944_1282.cpp:78:36: error: 'res' was not declared in this scope ans+=(R/d-L/d)%P*phi[d]%P;res%=P; ^