0_0_26083641_5433.cpp: In function 'int main()': 0_0_26083641_5433.cpp:23:12: error: 'i' was not declared in this scope cout << (i*(p - 1)) % p << endl; ^