记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:11:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (i = 0; i < s.length(); i++) {
              ~~^~~~~~~~~~~~
/in/foo.cc:13:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (j = i + 1; j < s.length(); j++) {
                   ~~^~~~~~~~~~~~
/in/foo.cc:19:8: error: 'k' was not declared in this scope
   for (k = i - 1; k>=0 ; k--) {
        ^
/in/foo.cc:25:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if ((j == s.length()&& k==-1) && !success)
        ~~^~~~~~~~~~~~~
/in/foo.cc:25:26: error: 'k' was not declared in this scope
   if ((j == s.length()&& k==-1) && !success)
                          ^

信息

递交者
类型
自测
题目
P1484 J. Every cloud has a silver lining
语言
C++
递交时间
2023-08-25 18:37:06
评测时间
2023-08-25 18:37:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes