foo.cc: In function 'void isflag(int)':
foo.cc:18:43: warning: statement has no effect [-Wunused-value]
if ((tp==1||tp==3)&&ishigh==false) ishigh==true;
~~~~~~^~~~~~
foo.cc:19:41: warning: statement has no effect [-Wunused-value]
if ((tp==2||tp==4)&&islow==false) islow==true;
~~~~~^~~~~~
foo.cc: In function 'void PAS()':
foo.cc:39:28: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [2])'
if (regex_match(data,r("<"))) nums++;
^
foo.cc:40:29: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [3])'
if (regex_match(data,r("<="))) nums++;
^
foo.cc:41:29: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [3])'
if (regex_match(data,r(">="))) nums++;
^
foo.cc:42:28: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [2])'
if (regex_match(data,r(">"))) nums++;
^
foo.cc:46:34: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [2])'
if (regex_search(data, m, r("<"))) {D(1,toint(m.suffix().str()));return;}
^
foo.cc:47:34: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [2])'
if (regex_search(data, m, r(">"))) {D(2,toint(m.suffix().str()));return;}
^
foo.cc:48:35: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [3])'
if (regex_search(data, m, r("<="))) {D(3,toint(m.suffix().str()));return;}
^
foo.cc:49:35: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [3])'
if (regex_search(data, m, r(">="))) {D(4,toint(m.suffix().str()));return;}
^
foo.cc:51:6: error: 'sums' was not declared in this scope
if (sums==2)
^~~~
foo.cc:51:6: note: suggested alternative: 'nums'
if (sums==2)
^~~~
nums
foo.cc:54:34: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [2])'
if (regex_search(data, m, r("<")))
^
foo.cc:59:34: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [2])'
if (regex_search(str, n, r("<"))) D(1,toint(n.suffix().str()));
^
foo.cc:60:35: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [3])'
if (regex_search(str, n, r("<="))) D(3,toint(n.suffix().str()));
^
foo.cc:62:35: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [3])'
if (regex_search(data, m, r("<=")))
^
foo.cc:67:34: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [2])'
if (regex_search(str, n, r("<"))) D(1,toint(n.suffix().str()));
^
foo.cc:68:35: error: no match for call to '(std::__cxx11::regex {aka std::__cxx11::basic_regex<char>}) (const char [3])'
if (regex_search(str, n, r("<="))) D(3,toint(n.suffix().str()));
^
foo.cc: In function 'void O()':
foo.cc:77:82: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
if ((ishigh==false&&islow==false)||((nowlow==nowhigh)&&((ifhigh!=iflow)||(ifhigh==iflow==false)))) cout<<"No Answer!";
~~~~~~^~~~~~~
foo.cc:78:32: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
if ((nowlow==nowhigh)&&(ifhigh==iflow==true)) cout<<key<<dengyu<<nowhigh;
~~~~~~^~~~~~~
[Hydro](https://hydro.ac)提供评测服务