/in/foo.cc:7:7: error: '__int64' does not name a type
const __int64 mod = (1LL << 31) - 1;
^~~~~~~
/in/foo.cc:43:17: error: '__int64' does not name a type
int list[1010]; __int64 ans = 1;
^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:69:9: error: 'ans' was not declared in this scope
ans = (ans * tt) % mod;
^~~
/in/foo.cc:69:28: error: 'mod' was not declared in this scope
ans = (ans * tt) % mod;
^~~
/in/foo.cc:71:22: error: 'ans' was not declared in this scope
printf("%lld\n", ans);
^~~