online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Cpp отражение прямоугольной матрицы относительно побочной диагонали: https://otvet.mail.ru/question/225186957 *******************************************************************************/ #include <iostream> using namespace std; int main() { const int n = 3, m=5; int b[n][m], a[m][n]; for (int i=0; i<n; i++){ for (int j=0; j<m; j++){ b[i][j] = random()%100; cout << b[i][j]<< " "; } cout << endl; } for (int i=0; i<n; i++){ for (int j=0; j<m; j++){ a[m-1-j][n-1-i] = b[i][j]; } } cout << endl; cout << endl; for (int j=0; j<m; j++){ for (int i=0; i<n; i++){ cout << a[j][i] << " "; } cout << endl; } return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue