Здравейте изпитвам затруднение със първата задача от втората лекция. Може ли някой да ми каже къде бъркам?
Problem 1 – Compare Arrays
Write a program that reads two integer arrays from the console and compares them element by element. For better code reusability, you could do the comparison in a
bool areEqual(int arr1[], int length1, int arr2[], int length2)
function, which returns true if they are equal and false if not.
Each array will be defined by two lines on the console – the first containing a number representing the length of the array, and the second containing the numbers in the array, separated by spaces.
Print equal if the arrays match, and not equal if the arrays don’t match.
https://pastebin.com/nPabYHM1