/in/foo.cc: In function 'long long int calc(int)':
/in/foo.cc:2:20: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
#define rep(i,a,b) for(int i=a;i<=b;i++)
^
/in/foo.cc:11:2: note: in expansion of macro 'rep'
rep(i,1,m) L=s[i],R=t[i],ans+=(cnt[R]-cnt[L-1])*(vs[R]-vs[L-1]);return ans;
^~~
/in/foo.cc:11:66: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
rep(i,1,m) L=s[i],R=t[i],ans+=(cnt[R]-cnt[L-1])*(vs[R]-vs[L-1]);return ans;
^~~~~~