dishes.cpp: In function 'int main()':
dishes.cpp:72:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i< N;i++){
~^~~
dishes.cpp:78:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i< M;i++){
~^~~
dishes.cpp:83:24: error: cannot bind non-const lvalue reference of type 'unsigned int&' to an rvalue of type 'unsigned int'
cout << max(dp(0,-1,1),dp(-1,0,-1));
^
dishes.cpp:23:6: note: initializing argument 1 of 'long int dp(unsigned int&, unsigned int&, const short int&)'
long dp(unsigned int & posa,unsigned int & posb,const short int & state){
^~
dishes.cpp:83:36: error: cannot bind non-const lvalue reference of type 'unsigned int&' to an rvalue of type 'unsigned int'
cout << max(dp(0,-1,1),dp(-1,0,-1));
^
dishes.cpp:23:6: note: initializing argument 1 of 'long int dp(unsigned int&, unsigned int&, const short int&)'
long dp(unsigned int & posa,unsigned int & posb,const short int & state){
^~
dishes.cpp: In function 'long int dp(unsigned int&, unsigned int&, const short int&)':
dishes.cpp:63:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^