fork download
  1. #include <iostream>
  2. #include <regex>
  3. using namespace std;
  4.  
  5. int main() {
  6. regex re("a{1,1000000000}");
  7. cout << regex_match("aaa", re) << endl;
  8. return 0;
  9. }
Runtime error #stdin #stdout #stderr 0.04s 9328KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
terminate called after throwing an instance of 'std::regex_error'
  what():  Number of NFA states exceeds limit. Please use shorter regex string, or use smaller brace expression, or make _GLIBCXX_REGEX_STATE_LIMIT larger.