fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. #define N 5
  5.  
  6. int main(void)
  7. {
  8. unsigned short a[N], i(0), Max(0);
  9. for (; i < N; i++)
  10. {
  11. cin >> a[i];
  12. if (!(a[i] % 2))
  13. if (a[i] / 100 < 10)
  14. if (a[i] / 100 > 0)
  15. if (a[i] > Max)
  16. Max = a[i];
  17. }
  18. if (Max)
  19. cout << Max;
  20. else
  21. cout << "<<Not found>>";
  22. cout << endl;
  23. return 0;
  24. }
Success #stdin #stdout 0s 3416KB
stdin
9999 998 444 222 10
stdout
998