Either log in as root or use the "su" and enter the root password
You shouldn't have to do this ever and definetly not to run a small university application. Obviously, your program is trying to do something your user has no rights to do. Write to files inaccessable to him, corrupting memory that does not belong to your program etc. Try to find out what fails. Try using a debugger.