fork download
  1.  
  2. int *temp= new int[newRows*newColumns];
  3. for(int i=0;i<newRows*newColumns;i++)
  4. temp[i]=mass[i];
  5.  
  6. delete mass;
  7. mass = temp;
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:20: error: ‘newRows’ was not declared in this scope
 int *temp= new int[newRows*newColumns];
                    ^~~~~~~
prog.cpp:2:28: error: ‘newColumns’ was not declared in this scope
 int *temp= new int[newRows*newColumns];
                            ^~~~~~~~~~
prog.cpp:3:1: error: expected unqualified-id before ‘for’
 for(int i=0;i<newRows*newColumns;i++)
 ^~~
prog.cpp:3:13: error: ‘i’ does not name a type
 for(int i=0;i<newRows*newColumns;i++)
             ^
prog.cpp:3:34: error: ‘i’ does not name a type
 for(int i=0;i<newRows*newColumns;i++)
                                  ^
prog.cpp:6:1: error: expected unqualified-id before ‘delete’
 delete mass;
 ^~~~~~
prog.cpp:7:1: error: ‘mass’ does not name a type; did you mean ‘class’?
 mass = temp;
 ^~~~
 class
stdout
Standard output is empty