This paper presents a novel approach to detecting and correcting errors in C programs using machine learning and data mining techniques. The proposed system utilizes hashtags to uniquely identify correct programs, allowing for efficient comparison with incorrect versions to detect both syntactical and logical errors. The integration of these technologies aims to simplify the debugging process and enhance the efficiency of programming for novice users.