Main.cc: In function ‘void dfs(int, int, int)’: Main.cc:12:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] if(n>=a) cnt+=ex_37(n); ~~~^~~~~~~~~~ Main.cc:12:24: error: assignment of read-only location ‘cnt’ if(n>=a) cnt+=ex_37(n); ^ Main.cc:12:24: error: cannot convert ‘int (*)()’ to ‘int()’ in assignment Main.cc: In function ‘int main()’: Main.cc:26:8: warning: the address of ‘int cnt()’ will never be NULL [-Waddress] cout<