Main.cc: In function ‘int f(int)’: Main.cc:4:8: error: ‘q’ was not declared in this scope int a=q(n%10); ^