记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:19:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |                         if(s[i]!=s[j]&&s[i]!=&&s[j]=='?')
foo.cc:19:49: error: expected ')' before '[' token
   19 |                         if(s[i]!=s[j]&&s[i]!=&&s[j]=='?')
      |                           ~                     ^
      |                                                 )
foo.cc:32:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   32 |                         if(s[i]!=s[j]&&s[i]!=&&s[j]=='?')
foo.cc:32:49: error: expected ')' before '[' token
   32 |                         if(s[i]!=s[j]&&s[i]!=&&s[j]=='?')
      |                           ~                     ^
      |                                                 )
foo.cc:36:29: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   36 |                         if(i=j&&s[i]=='?') cnt=(26+cnt)%P;
      |                            ~^~~~~~~~~~~~~
foo.cc:19:48: error: label 's' used but not defined
   19 |                         if(s[i]!=s[j]&&s[i]!=&&s[j]=='?')
      |                                                ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1456 4-3 小红的回文串
语言
C++
递交时间
2023-07-08 10:28:17
评测时间
2023-07-08 10:28:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes