/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:42:35: error: 'memset' was not declared in this scope
   memset(dp[i%2],0,sizeof(dp[i%2]));
                                   ^
/in/foo.cc:62:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if(t-kk>kk)kk=t-kk;
     ~~~~^~~
/in/foo.cc:63:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=t-kk;i++)b[i]=1;
              ~^~~~~~
/in/foo.cc:64:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(ull i=t;i>kk;i--)
              ~^~~
/in/foo.cc:67:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int j=1;j<=t-kk;j++)
               ~^~~~~~
/in/foo.cc:76:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int j=1;j<=t-kk;j++)
              ~^~~~~~

信息

递交者
类型
递交
题目
P1286 座位安排
语言
C++
递交时间
2019-11-06 10:02:29
评测时间
2019-11-06 10:02:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes