0_0_35398581_17266.cpp: In function 'int main()': 0_0_35398581_17266.cpp:80:35: error: 'res' was not declared in this scope printf("%lld\n", ((inv2 + res * invn % mod) % mod + mod) % mod); ^