I was writing a sample code on NetBeans and I realized that using std::foo does not work on NetBeans. It gives a "unresolved identifier error". This is the sample code below;
#include <cstdlib>
#include <iostream>
#include <vector> //Required whenever you use vectors
/*
*
*/
using std::vector;
using std::cout;
using std::endl;
int main(int argc, char** argv) {
vector<int> integers (4, 100); // Creates a vector [100 100 100 100]
cout << integers[0] << endl;
return 0;
}
The code builds and runs but the error is still visible on the text page.