Answers for "error: was not declared in this scope"

C++
1

error: 'endl' was not declared in this scope

using namespace std;

Explanation:
mention "using namespace std;" above the main function in C++ will solve the 'endl' error
Posted by: Guest on July-27-2020
-1

system was not declared in this scope

#include <cstdlib>
Posted by: Guest on May-15-2021

Code answers related to "error: was not declared in this scope"

Browse Popular Code Answers by Language