/in/foo.cc:6:2: error: invalid preprocessing directive #defien
#defien ll long long
^~~~~~
/in/foo.cc:9:7: error: 'll' does not name a type
const ll mod = 1e9+7;
^~
/in/foo.cc: In function 'int work()':
/in/foo.cc:14:5: error: 'll' was not declared in this scope
ll ans = 1;
^~
/in/foo.cc:20:18: error: 'ans' was not declared in this scope
if(t==0) ans=ans*(a[i]+1)%mod;
^~~
/in/foo.cc:20:35: error: 'mod' was not declared in this scope
if(t==0) ans=ans*(a[i]+1)%mod;
^~~
/in/foo.cc:21:19: error: 'ans' was not declared in this scope
if(t==-1) ans=ans*a[i-1]%mod;
^~~
/in/foo.cc:21:34: error: 'mod' was not declared in this scope
if(t==-1) ans=ans*a[i-1]%mod;
^~~
/in/foo.cc:23:12: error: 'ans' was not declared in this scope
return ans;
^~~