fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int baris, kolom;
  6. cin >> baris >> kolom;
  7.  
  8. vector<vector<int>> kotak(baris, vector<int>(kolom));
  9. for (int a = 0; a < baris; a++) {
  10. for (int b = 0; b < kolom; b++) {
  11. int input;
  12. cin >> input;
  13. kotak[a][b] = input;
  14. }
  15. }
  16.  
  17. for (int a = 0; a < baris; a++) {
  18. for (int b = 0; b < kolom; b++) {
  19. cout << kotak[a][b];
  20. }
  21. cout << endl;
  22. }
  23.  
  24. }
Success #stdin #stdout 0s 5316KB
stdin
2 2
11
11
stdout
1111
1111