Compile Error
/in/foo.cc: In function 'int main()': /in/foo.cc:9:29: error: incompatible types in assignment of 'long int' to 'long int [101]' scanf("%ld",&s[i]),f[i]=s[i],xr[i]=xr[i-1]+s[i]; ^
/in/foo.cc: In function 'int main()': /in/foo.cc:9:29: error: incompatible types in assignment of 'long int' to 'long int [101]' scanf("%ld",&s[i]),f[i]=s[i],xr[i]=xr[i-1]+s[i]; ^