#include #include #include #include "validate.h" #include "funcList.h" bool ValidateModSqrt( const string& operation ) { if( operation != "modSqrt" ) return false; ln a, p, s; cin >> a >> p >> s; ln sqrt = Sqrt( a, p ); CheckForError( sqrt, s, "modSqrt" ); return true; } static TestFunctionList RegFunc1( ValidateModSqrt ); bool ValidateModSqrtRandom( const string& operation ) { if( operation != "modSqrtRandom" ) return false; long count, size; cin >> count >> size; for( long i=0 ; i