I also copied and paste your code into my compiler & it compiled and ran totally fine. So, there is NO error in your code. I guess it's the problem with saving these two files. Remember to save the...