Cutting Recipe

alt text

even though i problem solves all the test cases i have been given as a wrong answer
the code is:CuttingRecipe

Hi,
You need to declare your loop variables in display() and main() before you use them.

One place is this:

void display(int n,int arr[]){
int l;
for(l=0;l<n;l++)

you can’t directly use for(int l=0;l<n;l++) unless you select c99. Correct this at all places in your program.

//