#include <iostream>
template <typename T>
void Len(T a[200])
{
std::cout<< sizeof(a) / sizeof(a[0])<<std::endl;
}
int main()
{
int a[300];
std::cout<<"Put the values of array you want."<<std::endl;
std::cin>>a;
std::cout<<"The number of occurrences of value in the array is";
Len(a);
}
why this code get error in std::cin>>a? I make code in C++ nearly first time. Please answer:(