semantic error
Computing term for an error where the code is syntactically correct but logically wrong, such as using a variable incorrectly or misunderstanding the meaning of an operation.
It compiled, but a semantic error prevents the program from running correctly.