0_0_16027126_30439.cpp: In function 'int main()': 0_0_16027126_30439.cpp:23:48: error: 'mod' was not declared in this scope ans=(ans+1ll*(r[i]-i+1)*(i-l[i]+1)%mod)%mod; ^