fork download
  1. #include <algorithm>
  2. #include <limits.h>
  3. #include <iostream>
  4. #include <iomanip>
  5.  
  6. int board[5][5];
  7.  
  8. using namespace std;
  9.  
  10. int main()
  11. {
  12. std::fill(&board[0][0], &board[5][5], INT_MAX);
  13. cout << INT_MAX << endl;
  14.  
  15. for(int r = 0; r < 5; r++) {
  16. for(int c = 0; c < 5; c++) {
  17. cout << setw(3) << board[r][c];
  18. }
  19. cout << endl;
  20. }
  21. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
2147483647
21474836472147483647214748364721474836472147483647
21474836472147483647214748364721474836472147483647
21474836472147483647214748364721474836472147483647
21474836472147483647214748364721474836472147483647
21474836472147483647214748364721474836472147483647