fork download
  1. #include <iostream>
  2.  
  3. void f(unsigned int row_number, unsigned int col_number, int** array)
  4. {
  5. for (unsigned int i = 0; i < row_number; ++i)
  6. {
  7. int max = array[i][0];
  8.  
  9. for (unsigned int j = 1; j < col_number; ++j)
  10. if (max < array[i][j])
  11. max = array[i][j];
  12.  
  13. std::cout << max << '\n';
  14. }
  15. }
  16.  
  17. int main()
  18. {
  19. return 0;
  20. }
Success #stdin #stdout 0s 3092KB
stdin
Standard input is empty
stdout
Standard output is empty