/ OPS /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < isbn.size()-1; i++) {
                    ^
/in/foo.cc:12:7: error: conflicting declaration 'int num'
   int num = 0;
       ^
/in/foo.cc:11:8: note: previous declaration as 'char num'
   char num = isbn[i];
        ^
/in/foo.cc:13:7: error: 'tmp' was not declared in this scope
   if (tmp != '-') {
       ^
/in/foo.cc:18:2: error: 'check' was not declared in this scope
  check = sum % 11;
  ^
/in/foo.cc:31:1: error: expected '}' at end of input
 }
 ^

信息

递交者
类型
递交
题目
P3501 ISBN号码
语言
C++
递交时间
2020-08-13 15:56:10
评测时间
2020-08-13 15:56:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes