0_0_34402120_29883.cpp: In function 'int main()': 0_0_34402120_29883.cpp:25:25: error: 'mod' was not declared in this scope while(scanf("%d%d",&n,&mod)!=EOF) ^