Skip to main content

Commmon C++ Errors

Runtime Errors

What is Runtime Errors



`use of undefined identifier 'null'

here vector v is null and in C++ null != empty

// ❎❎ This will NOT WORK

vector<int> v;

if (v.empty) {
cout << "Empty";
}

Compile Time Errors