Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
    9 |         while(l1>=2);
      |         ^~~~~
/in/foo.cc:10:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
   10 |         {
      |         ^
/in/foo.cc:11:20: error: expected '(' before '!' token
   11 |                 if !(s[i]=='6'&&s[l2]=='9'||s[i]=='1'&&s[l2]=='1'||s[i]=='8'&&s[l2]=='8'||s[i]=='9'&&s[l2]=='6'||s[i]=='0'&&s[l2]=='0')
      |                    ^
      |                    (
/in/foo.cc:8:25: warning: unused variable 'l2' [-Wunused-variable]
    8 |         int l1=s.size(),l2=l1-1,i=0;
      |                         ^~
/in/foo.cc:8:33: warning: unused variable 'i' [-Wunused-variable]
    8 |         int l1=s.size(),l2=l1-1,i=0;
      |                                 ^

信息

递交者
类型
递交
题目
P2939 中心对称数
语言
C++
递交时间
2025-06-29 06:58:03
评测时间
2025-06-29 06:58:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes