This line got two problems: lidl.valueFront(front);
1. There is no variable named lidl. You probably meant Lidl with capital L.
2. There is no variable named front in scope inside the main() function. You probably meant Lidl.front but you can't access that from main because it's a private variable of the rubiks class. The function name "valueFront" sounds like something that works only with the front variable. If that is the case then it doesn't have to have parameters. You can just use the front variable directly within rubiks::valueFront.
You're trying to pass in an array that's out of the scope of main().
Instead of trying to grab the array from your rubiks class, you should create the integer array inside main()
Line 87 is different from 85 --- remember that variables/objects/etc. are case sensitive.
If you're going to use the time() function, you need to include <ctime>
it works without Ctime?? i just want to give it a random value?
so I need to make a function for each of my array,
So a function cannot take an array as a parameter, because it out of scope.Would i t be posible if used another class to access my rubiks class. would then be posible.
I would ofcouse need to make it public, or would it still be out of scope??
You don't need a separate function for each array, and a function CAN take an array as a parameter - as long as the array is accessible in the scope you're working with.
If you want to use front inside of "rubiks," you can make it public and change the line "Lidl.valueFront(front);" to "Lidl.valueFront(Lidl.front);"
Standard headers often include other standard headers. <iostream> probably includes <ctime> and <cstdlib> (needed for srand and rand). This can differ between different compilers and different versions of the same compiler, or even between different compiler settings of the same compiler version so it is best to not assume that anything extra is included and just include everything you use. It's no big deal if you forget because it's easy to fix but it can be tiresome to do so on large projects consisting of many files.