记录详情

Compile Error

foo.cc:24:37: error: stray '\357' in program
   if ((sumw >= 11 || suml >= 11) && (sumw-suml>=2||suml-sumw>=2))
                                     ^
foo.cc:24:38: error: stray '\274' in program
   if ((sumw >= 11 || suml >= 11) && (sumw-suml>=2||suml-sumw>=2))
                                      ^
foo.cc:24:39: error: stray '\210' in program
   if ((sumw >= 11 || suml >= 11) && (sumw-suml>=2||suml-sumw>=2))
                                       ^
foo.cc:24:66: error: stray '\357' in program
   if ((sumw >= 11 || suml >= 11) && (sumw-suml>=2||suml-sumw>=2))
                                                                  ^
foo.cc:24:67: error: stray '\274' in program
   if ((sumw >= 11 || suml >= 11) && (sumw-suml>=2||suml-sumw>=2))
                                                                   ^
foo.cc:24:68: error: stray '\211' in program
   if ((sumw >= 11 || suml >= 11) && (sumw-suml>=2||suml-sumw>=2))
                                                                    ^
foo.cc:37:37: error: stray '\357' in program
   if ((sumw >= 21 || suml >= 21) && (sumw-suml>=2||suml-sumw>=2))
                                     ^
foo.cc:37:38: error: stray '\274' in program
   if ((sumw >= 21 || suml >= 21) && (sumw-suml>=2||suml-sumw>=2))
                                      ^
foo.cc:37:39: error: stray '\210' in program
   if ((sumw >= 21 || suml >= 21) && (sumw-suml>=2||suml-sumw>=2))
                                       ^
foo.cc: In function 'int main()':
foo.cc:24:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if ((sumw >= 11 || suml >= 11) && (sumw-suml>=2||suml-sumw>=2))
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:26:12: error: 'w' was not declared in this scope
    cout << w << ":" << l << endl;
            ^
foo.cc:26:24: error: 'l' was not declared in this scope
    cout << w << ":" << l << endl;
                        ^
foo.cc:37:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if ((sumw >= 21 || suml >= 21) && (sumw-suml>=2||suml-sumw>=2))
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:37:67: error: expected primary-expression before ')' token
   if ((sumw >= 21 || suml >= 21) && (sumw-suml>=2||suml-sumw>=2))
                                                                   ^

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)

信息

递交者
类型
递交
题目
P1156 乒乓球
语言
C++
递交时间
2020-08-05 16:57:10
评测时间
2020-08-05 16:57:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes