[Solved] How to remove “end of non-void function” error in c++? [duplicate]
Return some value via return statement regardress of value of lookup[i][j]. For example, return 0 because I don’t know the correct value to return. int f(long long int arr[], long long int x, long long int y) { long long int i = x, j = y; if(lookup[i][j] == 0) { if(i == j) lookup[i][j] … Read more