/in/foo.cc: In function 'bool check(int)':
/in/foo.cc:32:15: error: 'rr' was not declared in this scope
y+=(x[rr[i]]-x[ll[i]-1])*(v[rr[i]]-v[ll[i]-1]);
^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:52:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%I64d%I64d%I64d",&n,&m,&s);
^
/in/foo.cc:52:37: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:52:37: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'long long int*' [-Wformat=]
/in/foo.cc:55:38: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'long int*' [-Wformat=]
scanf("%lld%lld",&w[i],&vv[i]);
^
/in/foo.cc:59:34: error: 'rr' was not declared in this scope
scanf("%lld%lld",&ll[i],&rr[i]);
^~