fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n; cin>>n;
  6. int m; cin>>m;
  7. int arr[n][m];
  8. for(int i = 0; i < n; i++){
  9. for(int j = 0; j < m; j++){
  10. int x; cin>>x;
  11. arr[i][j] = x;
  12. }
  13. }
  14. for(int i = 0; i < n; i++){
  15. for(int j = 0; j < m; j++){
  16. cout<<"hi";
  17. }
  18. }
  19. // your code goes here
  20. return 0;
  21. }
Success #stdin #stdout 0s 4928KB
stdin
1 3
7 5 6
4 2 3
stdout
hihihi