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