fork(2) download
  1. using namespace std;
  2.  
  3. int main() {
  4. int* array = new int[3];
  5. array[1] = 1;
  6. array[2] = 2;
  7. array[3] = 3;
  8. cout << array << endl;
  9. }
Compilation error #stdin compilation error #stdout 0s 3476KB
stdin
Standard input is empty
compilation info
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;
                   ^
stdout
Standard output is empty