0_0_14097330_15713.cpp: In function 'int main()': 0_0_14097330_15713.cpp:46:40: error: 'mod' was not declared in this scope ans = ( ans + ( i - l ) * ( r - i )%mod ) % 1000000007; ^