/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'void round(int, int)':
/in/foo.cc:10:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < str.size(); ++i) {
                 ~~^~~~~~~~~~~~
/in/foo.cc:15:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(w == left && l < right || l == left && w < right) {
      ~~~~~~~~~~^~~~~~~~~~~~
/in/foo.cc:19:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if(w >= left && l >= right || l >= left && w >= right) {
      ~~~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc:20:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    if(w == 10 && l == right || l == left && w == right) continue;
       ~~~~~~~~^~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:32:15: error: 'round1' was not declared in this scope
  round1(10, 11);
               ^
/in/foo.cc:34:15: error: 'round2' was not declared in this scope
  round2(20, 21);
               ^

信息

递交者
类型
自测
题目
P1217 乒乓球
语言
C++
递交时间
2020-01-26 20:26:38
评测时间
2020-01-26 20:26:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes