Hi everybody ! I get this errorwhile compiling this code :no match for 'operator<<' in 'std::cin 1935374429'My error is in my function "tata" at the line where the cin is.Code:#include <iostream> #include <iomanip> #include <cstdlib> using namespace std; void initArray(float largeArray[6][6]){ for (int x=0; x < 6; x++){ for (int y=0; y<6; y++){ largeArray[x][y] = 0; } } } float printOutArray(float largeArray[6][6]){ for (int x = 0; x < 6; x++){ for (int y = 0; y < 6; y++){ cout << largeArray [x] [y]<<'\t'; } cout << endl; } return largeArray[6][6]; } void tata (int degree_denominator, float largeArray[6][6] ){ float array_of_coefficients[6]; int c=0; int l=0; int x=0; for (x=degree_denominator ; x>=0 ; x--){ if (l==1){l=0;c++;} cout << "what is the coefficient linked with degree" <<x<< "?" << endl; cin << array_of_coefficients[x]; largeArray[l][c] = array_of_coefficients[x]; l++; } } int main() { float largeArray [6][6]; initArray(largeArray); printOutArray(largeArray); int degree_denominator; cout << "what is the degree of the denominator?" << endl; cin >> degree_denominator; tata(degree_denominator, largeArray); }
I have no clue where this error comes from, if someone could tell me something to delete this error i would greatly appreciate it