>>949
#include <algorithm>
をインクルードして↓の処理を追加する

int min = *std::min_element(&A[0], &A[0] + num);
printf("最小値は %d です.\n", min);