Since a few days I have had a new problem with my code. Before everything worked fine. Once the IDE crashed while I was running my program. OK, I started it again and loaded the project. After then the code doesn't work fine. The code is the same like before (I think....). But now I got an erro while running.
Error: 0xC0000005
The error may be because of a number of reasons. It represents an access violation -- some part of some program on your system is trying to access memory it does not have permission to.
I'm not sure what you are trying to do with tablazat[], but you can use the std::rotate() <algorithm> to do the same.
Line 25: VLAs are not legal in C++. If your compiler is letting you do this then it may also be the problem?
Line 48: Why are you not sorting the final element? ("edcba" --> "bcdea")
Other issues:
You are defining functions in a header file. Don't do that. Headers only exist to tell you what functions exist in another .cpp file.