记录详情

Compile Error

/in/foo.cc:15:25: error: stray '\342' in program
    num = 2 * num + s[i]-‘0’;
                         ^
/in/foo.cc:15:26: error: stray '\200' in program
    num = 2 * num + s[i]-‘0’;
                          ^
/in/foo.cc:15:27: error: stray '\230' in program
    num = 2 * num + s[i]-‘0’;
                           ^
/in/foo.cc:15:29: error: stray '\342' in program
    num = 2 * num + s[i]-‘0’;
                             ^
/in/foo.cc:15:30: error: stray '\200' in program
    num = 2 * num + s[i]-‘0’;
                              ^
/in/foo.cc:15:31: error: stray '\231' in program
    num = 2 * num + s[i]-‘0’;
                               ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:12:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < s.size(); i++)
                  ~~^~~~~~~~~~

信息

递交者
类型
递交
题目
2-5 二进制表达式求值
语言
C++
递交时间
2021-05-30 22:02:51
评测时间
2021-05-30 22:02:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes