0_0_28626770_32036.cpp: In function 'int main()': 0_0_28626770_32036.cpp:40:28: error: 'mod' was not declared in this scope cout << a[i] % mod << " \n"[i == n]; ^