0_0_16738839_6320.cpp: In function 'll dfs(int, int, int, int)':
0_0_16738839_6320.cpp:35:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(lim==0 && dp[pos][cha][flag]!=-1 ){
^
0_0_16738839_6320.cpp:36:33: error: invalid conversion from 'int*' to 'll {aka long long int}' [-fpermissive]
return dp[pos][cha][flag];
^
0_0_16738839_6320.cpp: In function 'void solve()':
0_0_16738839_6320.cpp:67:36: error: too many arguments to function 'll dfs(int, int, int, int)'
printf("%lld\n",dfs(tot,0,0,1,1));
^
0_0_16738839_6320.cpp:25:4: note: declared here
ll dfs(int pos,int cha,int flag,int lim)
^
|