Main.cc: In function 'int dx(int, int)':
Main.cc:10:8: error: 'x' was not declared in this scope
while(x!=0){
^
Main.cc: In function 'int main()':
Main.cc:20:16: error: invalid conversion from 'bool (*)(int)' to 'int' [-fpermissive]
if(t(i)&&dx(t)){
^
Main.cc:9:5: note: initializing argument 1 of 'int dx(int, int)'
int dx(int y,int t=0){
^
Main.cc:21:18: warning: the address of 'bool t(int)' will always evaluate as 'true' [-Waddress]
cout<