0_0_18166178_1146.cpp: In function 'int main()': 0_0_18166178_1146.cpp:110:38: error: 'mod' was not declared in this scope while(scanf("%d%d%lld", &n, &m, &mod) , n) ^