using namespace std; int main() { int* array = new int[3]; array[1] = 1; array[2] = 2; array[3] = 3; cout << array << endl; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:8:2: error: ‘cout’ was not declared in this scope cout << array << endl; ^ prog.cpp:8:19: error: ‘endl’ was not declared in this scope cout << array << endl; ^
Standard output is empty