RC-PoR-P-Source-cod/RC-PoR-P.cpp
bool check_query(int* chall, int number_of_chall, int file_size){

  for (int i = 0; i< number_of_chall; i++){
    if(chall[i] > file_size){
      cout<<"\n There exist invalid challenge(s)"<<endl;
      return false;
    }
  }
  return true;
}
//===============================
// description: checks the validity of the elements in "chall".
checks the validity of the elements in "chall".
checks the validity of the elements in " chall " .
bool check_query(int* chall, int number_of_chall, int file_size){
  for (int i = 0; i< number_of_chall; i++){
    if(chall[i] > file_size){
      cout<<"\n There exist invalid challenge(s)"<<endl;
      return false;
    }
  }
  return true;
}
bool check_query ( int * chall , int number_of_chall , int file_size ) { for ( int i = 0 ; i < number_of_chall ; i ++ ) { if ( chall [ i ] > file_size ) { cout << " \n " << endl ; return false ; } } return true ; }
description: checks the validity of the elements in "chall".
description : checks the validity of the elements in " chall " .