foo.cpp: In function 'int main()':
foo.cpp:15:25: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'll* {aka long long int*}' [-Wformat=]
scanf("%d%d%d",&n,&m,&s);
^
foo.cpp:21:27: error: 'memset' was not declared in this scope
memset(sum,0,sizeof(sum));
^
foo.cpp:23:23: warning: unknown conversion type character 'l' in format [-Wformat=]
printf("%lld : ",mid);
^
foo.cpp:23:23: warning: too many arguments for format [-Wformat-extra-args]
foo.cpp:34:24: warning: unknown conversion type character 'l' in format [-Wformat=]
printf("%lld",abs(t-s));
^
foo.cpp:34:24: warning: too many arguments for format [-Wformat-extra-args]