"clear" will not always work cause Linux's method of clearing the terminal is different than Windows and will sometimes give you good WTF moments
system() not being found is very weird indeed, I have clue on this, but try including <stdlib.h> or <cstdlib> if C++...