i have a project due in two days and im having an issue with my array, i need to have the user enter the data into the array, and that part works perfectly, but when i try to pull out an element and adress it it gives me "invalid types "int[int]" for array subscript cout << j[0];
#include <iostream>
#include <string>
using namespace std;
int side1();
int main()
{
int side;
cout << "enter the number of sides";
cin >> side;
cout << side;
int i = side;
string* str = new string[i];
string input;
for(int j = 0 ; j< i ; j++) {
cout << "please enter the weight for side:" << j << "\n";