Novices just started to write programs in Linux and C++, the following errors may appear
error:’exit’ was not declared in this scope
The solution is
Add to
#include <cstdlib>
Similar Posts:
- [Solved] error: ‘INT_MAX’ was not declared in this scope
- [Solved] codeblocks Error: ‘to_string’ was not declared in this scope
- Linux: Environment Variables C_INCLUDE_PATH, CPLUS_INCLUDE_PATH, CPATH Common Error [How to Solve]
- ndk error: malloc was not declared in this scope
- [Solved] OpenCV 4 (C++) Error: “error: ‘CV_FOURCC’ was not declared in this scope”
- error: ‘to_string’ was not declared in this scope
- GCC refers to math. H header file, and there are some errors such as undefined reference to ` POW ‘when compiling
- Eclipse startup error: JVM terminated. Exit code = 13
- [Solved] org.apache.jasper.JasperException: java.lang.IllegalStateException: No output folder
- MySQL Python error installed in pyenv 2.7 environment