Compile Error

foo.cc: In function ‘int main()’:
foo.cc:12:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   12 |                 for(int i=0;i<s.size();i++)
      |                             ~^~~~~~~~~
foo.cc:15:25: warning: use of an operand of type ‘bool’ in ‘operator++’ is deprecated [-Wdeprecated]
   15 |                         a++;
      |                         ^
foo.cc:17:25: warning: use of an operand of type ‘bool’ in ‘operator++’ is deprecated [-Wdeprecated]
   17 |                         b++;
      |                         ^
foo.cc:19:25: warning: use of an operand of type ‘bool’ in ‘operator++’ is deprecated [-Wdeprecated]
   19 |                         a++;
      |                         ^
foo.cc:20:33: error: ‘F’ was not declared in this scope
   20 |                         if(s[i]>F)
      |                                 ^
foo.cc:21:25: warning: use of an operand of type ‘bool’ in ‘operator++’ is deprecated [-Wdeprecated]
   21 |                         d++;
      |                         ^

信息

递交者
类型
递交
题目
P2598 进制判断3级2 202309
语言
C++
递交时间
2026-08-13 17:22:53
评测时间
2026-08-25 08:04:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes