Main.cc: In function ‘int main()’: Main.cc:9:14: error: ‘s2’ cannot be used as a function s2(n2-1+m2-1)+(n-n1+m-m1); ^