/in/foo.cc: In function 'int main()':
/in/foo.cc:19:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(s(i)+s[j]+4+s[i+j]==n)
^
/in/foo.cc:19:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
/in/foo.cc:19:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(s(i)+s[j]+4+s[i+j]==n)
^
/in/foo.cc:19:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(s(i)+s[j]+4+s[i+j]==n)
^
/in/foo.cc:19:18: error: invalid operands of types 'int (*)(int)' and 'int(int)' to binary 'operator+'
if(s(i)+s[j]+4+s[i+j]==n)
~~~~~~~~~~~^~~~~~~