‘exit’ was not declared in this scope Posted on August 4, 2010 (Last modified on August 7, 2020) | 1 minutes | Kinshuk Chandra#include is solution.Similarly if one does not get these kinds of errors include respective header file.cpp kodeknight errors