When I run this code
#include <iostream>
#include <string>
#include <math.h>
using namespace std;
int main() {
int Array[100];
cin >> Array;
return 0;
}
I get the following error message at the cin
line:
Invalid operands to binary expression ('std::__1::istream' (aka 'basic_istream') and 'int *
Why can't I directly input an array? And how do I fix the problem?