fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. size_t n, m;
  6. cin >> n >> m;
  7. bool arr[n][m] = {false};
  8. for(size_t i = 0; i < n; i++){
  9. for(size_t j = 0; j < m; j++){
  10. cout << arr[i][j] << " ";
  11. }
  12. cout << endl;
  13. }
  14.  
  15. }
Success #stdin #stdout 0s 3472KB
stdin
5 5 
stdout
0 0 0 0 0 
0 0 0 0 0 
0 0 0 0 0 
0 0 0 0 0 
0 0 0 0 0