/in/foo.cc: In function 'int count(int)':
/in/foo.cc:12:5: warning: statement has no effect [-Wunused-value]
n/10;
~^~~
/in/foo.cc:15:8: warning: the address of 'int count(int)' will always evaluate as 'true' [-Waddress]
cout<<count;
^~~~~
/in/foo.cc:16:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/in/foo.cc: In function 'int total(int, int)':
/in/foo.cc:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:28:10: warning: unused variable 'sum' [-Wunused-variable]
int A,B,sum=0,i;
^~~
/in/foo.cc:28:16: warning: unused variable 'i' [-Wunused-variable]
int A,B,sum=0,i;
^