FG.cpp:10:1: warning: identifier 'constexpr' is a keyword in C++11 [-Wc++0x-compat]
constexpr int mod = 1000000007;
^
FG.cpp:10:1: error: 'constexpr' does not name a type
FG.cpp:10:1: note: C++11 'constexpr' only available with -std=c++11 or -std=gnu++11
FG.cpp: In function 'long long int modpow(long long int, long long int)':
FG.cpp:15:7: error: 'mod' was not declared in this scope
n %= mod;
^
FG.cpp: In function 'int main()':
FG.cpp:67:18: error: 'mod' was not declared in this scope
r = (r * j) % mod;
^
FG.cpp:68:38: error: 'mod' was not declared in this scope
result = (result * modpow(r, i)) % mod;
^
FG.cpp:76:41: error: 'mod' was not declared in this scope
result = (result * modpow(j, rem)) % mod;
^
FG.cpp:80:39: error: 'mod' was not declared in this scope
result = (result * modpow(j, rr)) % mod;
^
FG.cpp:37:12: warning: unused variable 'sum' [-Wunused-variable]
long long sum = 1;
^
FG.cpp:43:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
^