Write a program that determines the most frequent element in a given array. Test Case 1 Input (stdin) 5 1 2 3 4 1 Expected Output 1 Test Case 2 Input (stdin) 9 1 2 3 4 5 6 7 7 7 Expected Output 7
#include <iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b;
c=b-a;
cout<<"Count:"<<b-a;
return 0;
}