define _CRT_SECURE_NO_WARNI NGS include iostream include iomanip inclu

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <vector>
#define vd vector<double>
#define vvd vector<vector<double> >
#define ui unsigned int
using namespace std;
vvd a;
vvd b;
vvd temp;
int n;
int main ()
{
freopen("input.txt", "r", stdin);
cin >> n;
a.resize(n, vd(n));
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n ; ++j) {
cin >> a[i][j];
}
}
for (int i = 0; i < n; ++i) {
cout << endl;
for (int j = 0; j < n ; ++j) {
cout << a[i][j] <<" ";
}
}
}