0_0_36546482_11427.cpp: In function 'int main()': 0_0_36546482_11427.cpp:42:2: error: 'sum' was not declared in this scope sum=s*((b-a)%mod)%mod ^