记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(i=0;i<=s.length()-n;i++)
          ~^~~~~~~~~~~~~~
/in/foo.cc:13:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while(j<s.length() && cnt<n)
         ~^~~~~~~~~~~
/in/foo.cc:21:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while(j<s.length() && a[s[j++]-'a']!=0)
         ~^~~~~~~~~~~
/in/foo.cc:23:23: error: 'memset' was not declared in this scope
   memset(a,0,sizeof(a));
                       ^

信息

递交者
类型
递交
题目
P1568 Problem 1E. 子串计数
比赛
2024春 悬赏令第一周
语言
C++
递交时间
2024-04-19 22:00:11
评测时间
2024-04-20 22:57:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes