/ Vijos /

记录详情

Compile Error

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:38:23: error: 'r' was not declared in this scope
  if (regex_match(data,r("<"))) nums++;
                       ^
foo.cc:39:23: error: 'r' was not declared in this scope
  if (regex_match(data,r("<="))) nums++;
                       ^
foo.cc:40:23: error: 'r' was not declared in this scope
  if (regex_match(data,r(">="))) nums++;
                       ^
foo.cc:41:23: error: 'r' was not declared in this scope
  if (regex_match(data,r(">"))) nums++;
                       ^
foo.cc:45:29: error: 'r' was not declared in this scope
   if (regex_search(data, m, r("<"))) {D(1,toint(m.suffix().str()));return;}
                             ^
foo.cc:46:29: error: 'r' was not declared in this scope
   if (regex_search(data, m, r(">"))) {D(2,toint(m.suffix().str()));return;}
                             ^
foo.cc:47:29: error: 'r' was not declared in this scope
   if (regex_search(data, m, r("<="))) {D(3,toint(m.suffix().str()));return;}
                             ^
foo.cc:48:29: error: 'r' was not declared in this scope
   if (regex_search(data, m, r(">="))) {D(4,toint(m.suffix().str()));return;}
                             ^
foo.cc:50:6: error: 'sums' was not declared in this scope
  if (sums==2)
      ^~~~
foo.cc:50:6: note: suggested alternative: 'nums'
  if (sums==2)
      ^~~~
      nums
foo.cc:53:29: error: 'r' was not declared in this scope
   if (regex_search(data, m, r("<")))
                             ^
foo.cc:61:29: error: 'r' was not declared in this scope
   if (regex_search(data, m, r("<=")))
                             ^
foo.cc: In function 'void O()':
foo.cc:76: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:77:32: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
  if ((nowlow==nowhigh)&&(ifhigh==iflow==true)) cout<<key<<dengyu<<nowhigh;
                          ~~~~~~^~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1000 A+B Problem
语言
C++
递交时间
2021-10-17 11:22:49
评测时间
2021-10-17 11:22:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes