foo.cpp: In function 'int main()':
foo.cpp:17:27: warning: unknown conversion type character 'l' in format [-Wformat=]
scanf("%lld",&a[i]);
^
foo.cpp:17:27: warning: too many arguments for format [-Wformat-extra-args]
foo.cpp:21:27: warning: unknown conversion type character 'l' in format [-Wformat=]
scanf("%lld",&b[i]);
^
foo.cpp:21:27: warning: too many arguments for format [-Wformat-extra-args]
foo.cpp:44:31: error: 'abs' was not declared in this scope
sum+=abs(t[j]-a[j]);
^
foo.cpp:11:13: warning: unused variable 'k' [-Wunused-variable]
int i,j,k,m,mid;
^