0_0_30022475_12626.cpp: In function 'int main()': 0_0_30022475_12626.cpp:22:23: error: expression cannot be used as a function if(n%k==0 (n+1)*(n%(2*k))%(2*k)==0){ ^