fork download
  1. void printer(int** addy) {
  2. for (int i = 0; i < 3; i++) {
  3. cout << **addy << " ";
  4.  
  5. for (int j = 0; j < 5; j++) {
  6. cout << **addy << " ";
  7.  
  8. // works
  9. //cout << addy[i][j] << " ";
  10. }
  11. cout << endl;
  12. addy++;
  13. }
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘void printer(int**)’:
prog.cpp:3:9: error: ‘cout’ was not declared in this scope
         cout << **addy << " ";
         ^
prog.cpp:11:17: error: ‘endl’ was not declared in this scope
         cout << endl;
                 ^
stdout
Standard output is empty