/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:45:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if (   (b == decode2(guess1, i) && c == decode3(guess1, i)
          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:47:7: error: expected ')' before '{' token
     ) {
       ^
/in/foo.cc:50:2: error: expected ')' before 'else'
  else if (   (b == decode2(guess2, i) && c == decode3(guess2, i)
  ^~~~
/in/foo.cc:55:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  else if (   (b == decode2(guess3, i) && c == decode3(guess3, i)
               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:58:4: error: expected ')' before 'std'
    std::cout << guess3;
    ^~~
/in/foo.cc:58:23: error: expected ')' before ';' token
    std::cout << guess3;
                       ^

信息

递交者
类型
递交
题目
P1449 字符串还原
语言
C++
递交时间
2017-12-10 12:00:35
评测时间
2017-12-10 12:00:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes