Wrong Answer
/in/foo.cc: In function 'int main()':
/in/foo.cc:12:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int j=1;j<=i;j++)
   ^~~
/in/foo.cc:14:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    cout<<f[n][1]<<" "<<sum[n]-f[n][1];
    ^~~~