fork(1) download
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <array>
  4. using namespace std;
  5.  
  6. int main() {
  7. // your code goes here
  8. int arr[]={2,3,5,7,11,13,17,19,23};
  9. int s=std::find(std::begin(arr), std::end(arr), 6) != std::end(arr);
  10. cout << s;
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5472KB
stdin
Standard input is empty
stdout
Standard output is empty