#include <string>
#include <stdexcept>
#include <iostream>
int N_size_file = 5000;
int N_MAX = 4500;
void f()
{
if(N_size_file > N_MAX)
throw std::runtime_error( "check(): Hidden node count of "
+ std::to_string(N_size_file)
+ " exceeds maximum allowed value of "
+ std::to_string(N_MAX));
}
int main()
{
try {
f();
} catch(const std::exception& e) {
std::cout << "Caught exception: " << e.what() << '\n';
}
}
I2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPHN0ZGV4Y2VwdD4KI2luY2x1ZGUgPGlvc3RyZWFtPgppbnQgTl9zaXplX2ZpbGUgPSA1MDAwOwppbnQgTl9NQVggPSA0NTAwOwp2b2lkIGYoKQp7CiAgICBpZihOX3NpemVfZmlsZSA+IE5fTUFYKQogICAgICAgIHRocm93IHN0ZDo6cnVudGltZV9lcnJvciggICAiY2hlY2soKTogSGlkZGVuIG5vZGUgY291bnQgb2YgIgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKyBzdGQ6OnRvX3N0cmluZyhOX3NpemVfZmlsZSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICsgIiBleGNlZWRzIG1heGltdW0gYWxsb3dlZCB2YWx1ZSBvZiAiCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICArIHN0ZDo6dG9fc3RyaW5nKE5fTUFYKSk7Cn0KaW50IG1haW4oKQp7CiAgICB0cnkgewogICAgICAgIGYoKTsKICAgIH0gY2F0Y2goY29uc3Qgc3RkOjpleGNlcHRpb24mIGUpIHsKICAgICAgICBzdGQ6OmNvdXQgPDwgIkNhdWdodCBleGNlcHRpb246ICIgPDwgZS53aGF0KCkgPDwgJ1xuJzsKICAgIH0KfQ==